Closed bacaxnot closed 3 months ago
@viclafouch could you please take a look...?
@viclafouch hello...? 👀
Hello !
Try this :
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['mui-color-input'],
}
module.exports = nextConfig
Describe the bug
I'm getting a weird build error on Next 14.0.4. My Package.json is as follows:
To Reproduce Steps to reproduce the behavior:
pnpm build
import { jsx as c, jsxs as ct, Fragment as At } from "react/jsx-runtime"; ^^^^^^
SyntaxError: Cannot use import statement outside a module at internalCompileFunction (node:internal/vm:77:18) at wrapSafe (node:internal/modules/cjs/loader:1290:20) at Module._compile (node:internal/modules/cjs/loader:1342:27) at Module._extensions..js (node:internal/modules/cjs/loader:1437:10) at Module.load (node:internal/modules/cjs/loader:1212:32) at Module._load (node:internal/modules/cjs/loader:1028:12) at Module.require (node:internal/modules/cjs/loader:1237:19) at mod.require (xxxxxx/node_modules/.pnpm/next@14.0.4_react-dom@18.3.1_react@18.3.1/node_modules/next/dist/server/require-hook.js:65:28) at require (node:internal/modules/helpers:176:18) at 49981 (xxxxxx/.next/server/pages/settings.js:1:171049)