martpie / next-transpile-modules

Next.js plugin to transpile code from node_modules. Please see: https://github.com/martpie/next-transpile-modules/issues/291
MIT License
1.13k stars 85 forks source link

@babylonjs/inspector cannot be transpiled #231

Closed saidmoya12 closed 2 years ago

saidmoya12 commented 2 years ago

Are you trying to transpile a local package or an npm package? @babylonjs/inspector

Describe the bug I can transpile the @babylon/ modules except @babylonjs/inspector

To Reproduce

///next.config.js
const withTM = require("next-transpile-modules")(
    [
        "@babylonjs/core",
        "@babylonjs/gui",
        "@babylonjs/loaders",
        "@babylonjs/inspector", //just this module
        "react-babylonjs",
    ],
    { debug: true }
);

Setup

Throw the next error

error - ./node_modules/@babylonjs/inspector/babylon.inspector.bundle.max.js
TypeError: Property left of AssignmentExpression expected node to be of a type ["LVal"] but instead got "BooleanLiteral"

Someone can help me to solve this issue?

Thanks.

martpie commented 2 years ago

Can you paste the whole debug log please ? 🙏