Describe the bug
next build fails with the following error:
info - Collecting page data ./Users/timecklund/git/portal/node_modules/mui-file-input/dist/mui-file-input.es.js:1
import { jsxs as f, jsx as o } from "react/jsx-runtime";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1176:20)
at Module._compile (node:internal/modules/cjs/loader:1218:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at 70637 (/Users/timecklund/git/portal/.next/server/pages/parents-dashboard/child-info.js:3340:18)
at __webpack_require__ (/Users/timecklund/git/portal/.next/server/webpack-runtime.js:25:42)
transpilePackages: ['mui-file-input'], did not help
To Reproduce
Steps to reproduce the behavior:
npm run build to build the nextjs application
Desktop (please complete the following information):
OS: OS X
Additional context
The problem exists in 3.0.1 and 3.0.2, downgrading to version 3.0.0 fixes the problem
Describe the bug next build fails with the following error:
transpilePackages: ['mui-file-input'],
did not helpTo Reproduce Steps to reproduce the behavior:
npm run build
to build the nextjs applicationDesktop (please complete the following information):
Additional context The problem exists in
3.0.1
and3.0.2
, downgrading to version3.0.0
fixes the problem