-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Subject of the issue
Cannot find module '/tmp/example-app/node_modules/gridstack/dist/gridstack-engine' imported from /tmp/example-app/node_modules/gridstack/dist/gridstack.js
Your environment
- gristack v12.0.0
- Firefox 137.0.1/Archlinux
- Node v23.9.0
- npm v10.9.1
- react-router v7.5
- react v19
- vite v5.4.11
Steps to reproduce
Run in terminal:
npx create-react-router@latest example-app
cd example-app
npm i gridstack
echo 'import "gridstack"' >> app/routes/home.tsx
npm run dev
# Open link `http://localhost:5175/` in browser
# The browser show Error:
# Cannot find module '/tmp/example-app/node_modules/gridstack/dist/gridstack-engine' imported from /tmp/example-app/node_modules/gridstack/dist/gridstack.js
# If run `npm run build` to build the app, then run `npm start`, the terminal show error:
>Error: Cannot find module '/tmp/example-app/node_modules/gridstack/dist/gridstack-engine' >imported from /tmp/example-app/node_modules/gridstack/dist/gridstack.js
> at finalizeResolution (node:internal/modules/esm/resolve:275:11)
> at moduleResolve (node:internal/modules/esm/resolve:860:10)
> at defaultResolve (node:internal/modules/esm/resolve:984:11)
> at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:736:12)
> at ModuleLoader.#cachedDefaultResolve (node:internal/modules/esm/loader:660:25)
> at ModuleLoader.resolve (node:internal/modules/esm/loader:643:38)
> at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:279:38)
> at ModuleJob._link (node:internal/modules/esm/module_job:137:49)