Unfortunately this repo is not possible to run on windows with node.js v20 to v22.
didn't try versions before 20.
I get a ton of Errors, and if i try to solve them i get new errors... i didnt get it to run. but if i use this repo on https://vercel.com/ it works.
i uplaod the errors when i have time to reproduce it!
first i had a ton of dependency and depreciation errors, by solving these i get a alot of cjs and ems related errors,
solving that i get the actual errors:
PS C:\flowGit\crypto-projects\solana-hashlips-candy-nft\4-mint\candy-nft-mint-v3_1> pnpm build
> umi-cmv3-ui-inofficial@0.3.0 build C:\flowGit\crypto-projects\solana-hashlips-candy-nft\4-mint\candy-nft-mint-v3_1
> next build
▲ Next.js 14.2.3
- Environments: .env
./pages/index.tsx
111:6 Warning: React Hook useEffect has missing dependencies: 'candyMachineId', 'firstRun', 'setfirstRun', and 'toast'. Either
include them or remove the dependency array. If 'setfirstRun' changes too often, find the parent component that defines it and wrap that definition in useCallback. react-hooks/exhaustive-deps
info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
✓ Linting and checking validity of types
Creating an optimized production build ...
✓ Compiled successfully
Collecting page data ...(node:45420) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:45480) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
unhandledRejection Error: Cannot find package 'C:\flowGit\crypto-projects\solana-hashlips-candy-nft\4-mint\candy-nft-mint-v3_1\node_modules\.pnpm\@metaplex-foundation+umi-eddsa-web3js@0.9.1_@metaplex-foundation+umi@0.9.1_@solana+web3.js@1._5db4uirfevb4qsdrvmirrpmn6q\node_modules\@solana\web3.js\package.json' imported from C:\flowGit\crypto-projects\solana-hashlips-candy-nft\4-mint\candy-nft-mint-v3_1\node_modules\.pnpm\@metaplex-foundation+umi-eddsa-web3js@0.9.1_@metaplex-foundation+umi@0.9.1_@solana+web3.js@1._5db4uirfevb4qsdrvmirrpmn6q\node_modules\@metaplex-foundation\umi-eddsa-web3js\dist\esm\createWeb3JsEddsa.mjs
Did you mean to import "@solana/web3.js/lib/index.cjs.js"?
at legacyMainResolve (node:internal/modules/esm/resolve:214:26)
at packageResolve (node:internal/modules/esm/resolve:832:14)
at moduleResolve (node:internal/modules/esm/resolve:918:18)
at defaultResolve (node:internal/modules/esm/resolve:1148:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:528:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:497:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:231:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:97:39)
at link (node:internal/modules/esm/module_job:96:36) {
type: 'Error',
code: 'ERR_MODULE_NOT_FOUND'
}
Collecting page data . ELIFECYCLE Command failed with exit code 1.
package:
info i had to put in "type": "commonjs", cause the node.js didn't work with next.js and also in all "solana/wallet-adapter*" modules i had to work around that it uses cjs and not ems...
Unfortunately this repo is not possible to run on windows with node.js v20 to v22. didn't try versions before 20.
I get a ton of Errors, and if i try to solve them i get new errors... i didnt get it to run. but if i use this repo on https://vercel.com/ it works. i uplaod the errors when i have time to reproduce it!
first i had a ton of dependency and depreciation errors, by solving these i get a alot of cjs and ems related errors,
solving that i get the actual errors:
Versions:
package: info i had to put in
"type": "commonjs",
cause the node.js didn't work with next.js and also in all "solana/wallet-adapter*" modules i had to work around that it uses cjs and not ems...