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

CLI Tooling Incompatible with Node 18.16.1 and above #237

Open
vofan opened this issue Sep 26, 2023 · 6 comments
Open

CLI Tooling Incompatible with Node 18.16.1 and above #237

vofan opened this issue Sep 26, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@vofan
Copy link

vofan commented Sep 26, 2023

$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/[email protected]

@sdlaver
Copy link
Contributor

sdlaver commented Sep 26, 2023

@creativedrewy would you mind taking a look at this?

@creativedrewy
Copy link
Contributor

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

@vofan
Copy link
Author

vofan commented Sep 26, 2023

Hello @creativedrewy.

% node --version
v20.5.1

@creativedrewy
Copy link
Contributor

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

@vofan
Copy link
Author

vofan commented Sep 26, 2023

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

@creativedrewy
Copy link
Contributor

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

@creativedrewy creativedrewy changed the title Can't *npx dapp-store ini*t with *@solana-mobile/dapp-store-cli 0.5.2* CLI Tooling Incompatible with Node 18.16.1 and above Sep 26, 2023
@creativedrewy creativedrewy added the bug Something isn't working label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants