Comments (3)
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.
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.
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)
- 'use strict' causing script loading errors. HOT 2
- Support require([js-data-uri]); HOT 1
- Cajon treats CoffeeScript compiler as a CommonJS module HOT 1
- Require-CS not working with Cajon HOT 3
- Remove Query from path in debugger... HOT 1
- Upgrading from 0.1.14 -> 0.2.4, `global` should be defined HOT 6
- `exportsPropRegExp` should also check for array notation.
- not working with text plugin HOT 9
- "exports is not defined" HOT 2
- Backbone shim HOT 4
- Evaled scripts show up under (no domain) in chrome
- Conditional comments around sourceUrl comment causing grey hair HOT 3
- Code has to be evaluated in global scope HOT 5
- Cajon is not available via Bower HOT 5
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 cajon.