New issue
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
Error: Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' #8674
Comments
I'm seeing the same issue. It looks like browser builds are broken since #8536 |
adding @giladgd |
@Nannny Can you please provide an example project I could use to reproduce the issue? |
hi @giladgd , i was downgraded @ionic/angular to 5.0.0, angular to 11.2.14 ,caused aonther errors: Error: ./node_modules/typeorm/index.mjs 181:4-11 Error: ./node_modules/typeorm/index.mjs 362:15-22 This is a part of my package.json: dependencies: devDependencies: |
@giladgd i created a repository for you: https://github.com/chriswep/typeorm-esm-browser just run |
thanks @giladgd a lot for the quick help |
./node_modules/@angular-architects/module-federation/src/index.js:1:0 - Error: Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0)
Need help when i build then its gave error |
I'm facing the same error. Whenever I'm trying to use re-exports it crashes and prints the error you specified. |
typeorm: 0.2.43
ionic: 6.0.8
angular:12
./node_modules/typeorm/browser/index.js:3:0 - Error: Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (3:0)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| /*!
| */
The text was updated successfully, but these errors were encountered: