efficient-indigoE
Refine2y ago
2 replies
efficient-indigo

Refine/Remix/Yarn does not work in turborepo

Hi, I'm trying to run Refine/Remix in turborepo using Yarn 4.3.0 and Node 18.14.
After creating the project and installing dependencies, I'm getting the following error:

yarn dev
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                  │
│   — Refine Devtools beta version is out! To install in your project, just run npm run refine devtools init. https://s.refine.dev/devtools-beta   │
│                                                                                                                                                  │
│   — Hello from Refine team! Hope you enjoy! Join our Discord community to get help and discuss with other users. https://discord.gg/refine       │
│                                                                                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
node:internal/modules/cjs/loader:1047
  const err = new Error(message);
              ^

Error: Cannot find module '.bin/remix'
Require stack:
- /Volumes/Development/src/trustradius/econx/node_modules/@refinedev/cli/dist/cli.cjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1047:15)
    at Function.resolve (node:internal/modules/cjs/helpers:109:19)
    at Object.getBin (/Volumes/Development/src/trustradius/econx/node_modules/@refinedev/cli/dist/cli.cjs:4:1659)
    at Command.Bo (/Volumes/Development/src/trustradius/econx/node_modules/@refinedev/cli/dist/cli.cjs:17:1466)
    at Command.listener [as _actionHandler] (/Volumes/Development/src/trustradius/econx/node_modules/@refinedev/cli/node_modules/commander/lib/command.js:482:17)
    at /Volumes/Development/src/trustradius/econx/node_modules/@refinedev/cli/node_modules/commander/lib/command.js:1264:65
    at /Volumes/Development/src/trustradius/econx/node_modules/@refinedev/cli/node_modules/commander/lib/command.js:1155:33
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Volumes/Development/src/trustradius/econx/node_modules/@refinedev/cli/dist/cli.cjs'
  ]
}

Node.js v18.14.0



Any idea what might be going wrong?
Was this page helpful?