Comments (4)
Hi @winniejo,
I can't say with so few informations.
Are you using a bundler? If not, are you using the type="module"
attribute on your main script tag? Have you tried with the umd version?
Cheers,
from curtainsjs.
Greetings martinlaxenaire,
Iam not using a bundler.
I just downloaded the code + example files from Github and dumped it ("as is") in the xampp root htdocs / curtainsjs-master / examples / simple-plane / index.html and run it. so mime type="module" is untouched. and the html/css is running.
If it were the "simple-plane" index or any other example it throws the same error in my console:
I used it on FF, Chrome and Safari
** FF Console Errors:**
"Loading module from “http://localhost/1/src/index.mjs” was blocked because of a disallowed MIME type (“”)". - index.html
FF Console Watnings:
"Loading failed for the module with source “http://localhost/1/src/index.mjs”. index.html:56:1
Console Watnings:
"Some cookies are misusing the recommended “SameSite“ attribute 3 "
I also did not touch the code in the index.html or any other files, so it should run! Or am I missing something?
p.s. I dontt have a clue about UMD or how to use it :)
WJ
from curtainsjs.
This might have to do with Xamp not recognizing *.mjs
files as javascript. Maybe this can help? https://stackoverflow.com/a/59595485/13354068
from curtainsjs.
So its fixed for me by renaming "index.jsm" to "index.js"
that is strange... it simply cant recognize .jsm.
Not sure its Xampp, because running index,html direct from the desktop without xampp gives the same error.
Maybe its because of the older OS and browsers Iam using at the moment.
well have a nice one, cheers.
from curtainsjs.
Related Issues (20)
- Domain Warping HOT 1
- Planes are missing after resize HOT 3
- Multiple ShaderPasses per Plane HOT 3
- Incorrect sampler name HOT 2
- Copying a texture with different sourceType doesn't work HOT 4
- Make an option for a plane with rounded edges
- Gifs as displacement maps? HOT 3
- use more than 3 videos HOT 2
- Changing current shaders HOT 2
- Different shaders for different events HOT 2
- Creating a GSAP and CurtainJs Slider Canvas Image Issue HOT 5
- Multiple Planes issue HOT 1
- when resizing positions of planes misplaced HOT 2
- Creating a new texture or setting the source of an existing one dynamically throws a WebGL render error HOT 1
- reusing a past video texture HOT 5
- Strange behaviour on Safari ping/pong shading flowmap example HOT 4
- WebGL2 Support HOT 2
- Typescript types. HOT 2
- autoResize disabled, but right after refresh, the curtain gets resized HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curtainsjs.