-
-
Notifications
You must be signed in to change notification settings - Fork 834
bug: ReferenceError: _interopNamespace is not defined #6270
Copy link
Copy link
Closed
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within StencilHelp Wanted
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
3.28.0+
Current Behavior
After upgrade the version of stencil, from 4.27.1 to 4.32.0, I started to face this error.
CJS build is missing _interopNamespace rollup helper when the config enableImportInjection is settled to true.
Expected Behavior
_interopNamespace present in the helper as was when the version was 4.27.1.
System Info
System: node 18.20.6
Platform: windows (10.0.22631)
CPU Model: Intel(R) Core(TM) Ultra 7 165U (14 cpus)
Build: 1748464182
Stencil: 4.32.0
TypeScript: 5.5.4
Rollup: 4.34.9
Parse5: 7.2.1
jQuery: 4.0.0-pre
Terser: 5.37.0Steps to Reproduce
I create an next app to use the cjs module, but you can just check the cjs file in the build. To run the project you can:
- npm i
- npm run build
- cd next-app
- npm i
- npm run dev
Code Reproduction URL
https://github.com/matheus-rosa-jsm/stencil-bug-reproduction
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within StencilHelp Wanted

