Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nextjs Module import error with osmojs@16.10.0 and osmojs@16.9.2. Version osmojs@16.9.0 doesnt create this error. #90

Open
MbBrainz opened this issue Apr 10, 2024 · 1 comment

Comments

@MbBrainz
Copy link

When running pnpm build, the build process fails with the error below. Shows for both osmojs@16.10.0 and osmojs@16.9.2 but not for osmojs@16.9.0

app/node_modules/.pnpm/osmojs@16.10.0/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)
@MbBrainz
Copy link
Author

MbBrainz commented May 9, 2024

@pyramation Any idea what caused this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant