Nextjs Module import error with [email protected]
and [email protected]
. Version [email protected]
doesnt create this error. #90
Open
Description
When running pnpm build
, the build process fails with the error below. Shows for both [email protected]
and [email protected]
but not for [email protected]
app/node_modules/.pnpm/[email protected]/node_modules/osmojs/dist/codegen/cosmos/staking/v1beta1/staking.js:1
fortytwo-app:build: import { Header } from "../../../tendermint/types/types";
fortytwo-app:build: ^^^^^^
fortytwo-app:build:
fortytwo-app:build: SyntaxError: Cannot use import statement outside a module
fortytwo-app:build: at internalCompileFunction (node:internal/vm:77:18)
fortytwo-app:build: at wrapSafe (node:internal/modules/cjs/loader:1290:20)
fortytwo-app:build: at Module._compile (node:internal/modules/cjs/loader:1342:27)
fortytwo-app:build: at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
fortytwo-app:build: at Module.load (node:internal/modules/cjs/loader:1212:32)
fortytwo-app:build: at Module._load (node:internal/modules/cjs/loader:1028:12)
fortytwo-app:build: at Module.require (node:internal/modules/cjs/loader:1237:19)
fortytwo-app:build: at require (node:internal/modules/helpers:176:18)
Metadata
Metadata
Assignees
Labels
No labels