GoogleChromeLabs / ndb

ndb is an improved debugging experience for Node.js, enabled by Chrome DevTools
Apache License 2.0
10.9k stars 230 forks source link

Seems to fail in rush/pnpm project #315

Open knownasilya opened 4 years ago

knownasilya commented 4 years ago

Steps to reproduce

Tell us about your environment:

What steps will reproduce the problem?

Clone https://github.com/Strider-CD/strider/tree/chore/rush and do install npm install -g @microsoft/rush (https://rushjs.io/pages/intro/get_started/) Setup repo: rush install which installs with pnpm.

Get this error when running env DEBUG='strider*' ndb yarn watch-lib (Same error if using npx).

⋊> ~/m/s/a/strider on chore/rush ◦ env DEBUG='strider*' ndb yarn watch-lib                             10:29:43
yarn run v1.17.3
$ nodemon
internal/modules/cjs/loader.js:582
    throw err;
    ^

Error: Cannot find module 'ndb/preload.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at Module._preloadModules (internal/modules/cjs/loader.js:811:12)
    at preloadModules (internal/bootstrap/node.js:594:7)
    at startup (internal/bootstrap/node.js:275:9)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

What is the expected result? Expect ndb to start the server.

What happens instead? The error shows up and the devtools page stays open but nothing else happens.

octogonz commented 4 years ago

I haven't used ndb before, but it looks cool! We should figure out why this isn't working.

diminutivesloop commented 3 years ago

I got this error too when I tried to debug yarn dev in the mdn/yari project.

schemar commented 3 years ago

I get the same for ndb ./node_modules/.bin/react-scripts start

jauhman commented 3 years ago

Terima kasih

SELAMAT BERBAGI.

Jakarta 21 Desember. 2010

James Manalu

Pada tanggal Sen, 17 Mei 2021 pukul 13.51 流浪大法师 @.***> menulis:

I get the same for ndb styleguidist server

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GoogleChromeLabs/ndb/issues/315#issuecomment-842053903, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB2VFRWZS7BBHOTHJKMGJ3TOC4HZANCNFSM4ORVMJ2A .