Imports for perspective-viewer? #2120
-
So I have a react app using perspective which works flawless in dev mode but breaks when built in prod. I think I am missing an import for perspective-viewer? Minimum working example: App.tsx:
craco.config.js:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Requiring es6-modules in package.json resolved the problem. |
Beta Was this translation helpful? Give feedback.
-
What action did you take to resolve this? I'm seeing the same issue, but adding |
Beta Was this translation helpful? Give feedback.
-
You have to change browserslist the
|
Beta Was this translation helpful? Give feedback.
Requiring es6-modules in package.json resolved the problem.