Skip to content
This repository has been archived by the owner on Jan 10, 2018. It is now read-only.

ReferenceError: require is not defined #54

Closed
jimbasilio opened this issue Mar 3, 2016 · 2 comments
Closed

ReferenceError: require is not defined #54

jimbasilio opened this issue Mar 3, 2016 · 2 comments

Comments

@jimbasilio
Copy link

Followed #50, but now I get

ReferenceError: require is not defined

For all the js sources that use the require function.

Any tips? I never used module loading before angular2/SystemJS so I'm a bit lost.

@robwormald
Copy link
Contributor

answered you in gitter, but for posterity - don't load the module code in a script tag - it's the loader's job to import these files - they are modules (and not scripts) and thus can't be directly included in a script tag.

@jimbasilio
Copy link
Author

thanks!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants