We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is part of a simplified test example that can be found at https://github.com/dara76/node-serve-jspm-test
I have the following in my index.html
<script src="jspm_packages/system.js"></script> <script src="config.js"></script> <script> System.trace = true; System.import('./app/main'); </script>
where main.js is
console.log('main.js'); import React from 'react';
I get the following error
Uncaught (in promise) Error: (SystemJS) Module http://localhost:3000/app/main.js interpreted as global module format, but called System.register.
If I remove the import React from 'react' statement from main.js there is no error and the console.log executes.
import React from 'react'
console.log
How can I avoid getting the above error?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is part of a simplified test example that can be found at https://github.com/dara76/node-serve-jspm-test
I have the following in my index.html
where main.js is
I get the following error
If I remove the
import React from 'react'
statement from main.js there is no error and theconsole.log
executes.How can I avoid getting the above error?
The text was updated successfully, but these errors were encountered: