solana-mobile / dapp-publishing

Apache License 2.0
54 stars 15 forks source link

CLI Tooling Incompatible with Node 18.16.1 and above #237

Open vofan opened 9 months ago

vofan commented 9 months ago
$publishing % pnpm install --save-dev @solana-mobile/dapp-store-cli                   

devDependencies:
+ @solana-mobile/dapp-store-cli 0.5.2 <- ../packages/cli

Done in 1s
$publishing % npx dapp-store init
node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module './packages/cli/lib/index.js' imported from./packages/cli/bin/dapp-store.js
    at new NodeError (node:internal/errors:405:5)
    at finalizeResolution (node:internal/modules/esm/resolve:226:11)
    at moduleResolve (node:internal/modules/esm/resolve:838:10)
    at defaultResolve (node:internal/modules/esm/resolve:1036:11)
    at DefaultModuleLoader.resolve (node:internal/modules/esm/loader:251:12)
    at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:140:32)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:33)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Solution:

pnpm install --save-dev @solana-mobile/dapp-store-cli@0.5.1

sdlaver commented 9 months ago

@creativedrewy would you mind taking a look at this?

creativedrewy commented 9 months ago

Hey @vofan can you let me know what version of nodejs you're running?

vofan commented 9 months ago

Hello @creativedrewy.

% node --version
v20.5.1
creativedrewy commented 9 months ago

I just confirmed everything working with Node 18.16.0. Would you be able to use Node Version Manager and try Node 18?

vofan commented 9 months ago

yes, it works on 18.16 .0, but not 18.16.1 and above

creativedrewy commented 9 months ago

Thanks for the update, and sorry about the troubles. I'm going to modify your title add add this bug to our backlog.