You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When building the React project, the build fails with a module parse error. The error message indicates an issue with handling new.target in the three-stdlib/libs/chevrotain.js file.
To Reproduce
Steps to reproduce the behavior:
Installation with yarn
Run the project using yarn dev
Observe the error during the build process
Error
./node_modules/three-stdlib/libs/chevrotain.js
Module parse failed: 'new.target' can only be used in functions and class static block (12:17)
File was processed with these loaders:
* ./node_modules/next/dist/compiled/@next/react-refresh-utils/dist/loader.js
* ./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js
* ./node_modules/next-translate/lib/cjs/plugin/loader.js
You may need an additional loader to handle the result of these loaders.
| import _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs";
| import _create_super from "@swc/helpers/src/_create_super.mjs";
> var _newtarget = new.target;
| var ref = function() {
| var getRawTag = function getRawTag(value) {
System Info
macOS Monterey
Node version v20.4.0
Npm version 9.8.1
Additional context
This issue persists even after updating all project dependencies.
The text was updated successfully, but these errors were encountered:
Describe the bug
When building the React project, the build fails with a module parse error. The error message indicates an issue with handling new.target in the three-stdlib/libs/chevrotain.js file.
To Reproduce
Steps to reproduce the behavior:
Error
System Info
Additional context
This issue persists even after updating all project dependencies.
The text was updated successfully, but these errors were encountered: