Giter Club home page Giter Club logo

Comments (4)

martinlaxenaire avatar martinlaxenaire commented on May 24, 2024

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.

winniejo avatar winniejo commented on May 24, 2024

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.

martinlaxenaire avatar martinlaxenaire commented on May 24, 2024

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.

winniejo avatar winniejo commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.