Coder Social home page Coder Social logo

Comments (3)

cowboy avatar cowboy commented on July 19, 2024

In fact, if all I do is change this (from a fully working app):

<script data-main="app/bootstrap" src="components/requirejs/require.js"></script>

To this:

<script data-main="app/bootstrap" src="node_modules/cajon/cajon.js"></script>

Without any other changes, I see this error.

from cajon.

jrburke avatar jrburke commented on July 19, 2024

I wonder if it is related to the eval that cajon does, it may be a scope issue for shimmed libraries. Interesting, I do not think I have tried that with cajon with shim config, since I assumed all the code would be either cjs or amd modules.

I am at a work week through this Thursday, but will have more bandwidth after that to deep dive. Thanks for the steps to reproduce!

from cajon.

jrburke avatar jrburke commented on July 19, 2024

Thanks for the report. I believe I fixed it, for shimmed libs that just do var something = {}, those were not evaled in global scope, so their var is not globally visible. Now, the code adds in a define() for those scripts before evaling.

Full fix is in 0.1.9, which has been tagged/released.

from cajon.

Related Issues (15)

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.