Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Seems to fail in rush/pnpm project #315

Open
knownasilya opened this issue Jul 6, 2020 · 4 comments
Open

Seems to fail in rush/pnpm project #315

knownasilya opened this issue Jul 6, 2020 · 4 comments

Comments

@knownasilya
Copy link

Steps to reproduce

Tell us about your environment:

  • ndb version: 1.1.5
  • Platform / OS version: macos
  • Node.js version: 10.13

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
Copy link

octogonz commented Jul 6, 2020

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

@diminutivesloop
Copy link

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

@schemar
Copy link

schemar commented Jan 28, 2021

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

@jauhman
Copy link

jauhman commented May 17, 2021 via email

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

No branches or pull requests

5 participants