deep-foundation / deepcase-app

https://deep-foundation.github.io/deepcase-app/
The Unlicense
11 stars 7 forks source link

Module not found: Can't resolve 'strip-eof' #324

Closed Konard closed 4 months ago

Konard commented 4 months ago

IMG_2784

Browser

Build Error

Failed to compile

Next.js (14.2.3)
../deeplinks/node_modules/execa/index.js:5:1
Module not found: Can't resolve 'strip-eof'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
../deeplinks/node_modules/shell-env/index.js
../deeplinks/node_modules/shell-path/index.js
../deeplinks/node_modules/fix-path/index.js
../deeplinks/imports/engine.js
./pages/api/deeplinks.ts
This error occurred during the build process and can only be dismissed by fixing the error.

Terminal

[0]  ⨯ ../deeplinks/node_modules/execa/index.js:5:1
[0] Module not found: Can't resolve 'strip-eof'
[0] 
[0] https://nextjs.org/docs/messages/module-not-found
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/node_modules/shell-env/index.js
[0] ../deeplinks/node_modules/shell-path/index.js
[0] ../deeplinks/node_modules/fix-path/index.js
[0] ../deeplinks/imports/engine.js
[0] ./pages/api/deeplinks.ts
Konard commented 4 months ago

Research the problem:

gitpod /workspace/dev (main) $ npm list fix-path
@deep-foundation/dev@0.0.21 /workspace/dev
├─┬ @deep-foundation/deepcase-app@0.1.0-beta.28 -> ./packages/deepcase-app
│ └── fix-path@4.0.0
└─┬ @deep-foundation/deeplinks@0.0.348 -> ./packages/deeplinks
  └── fix-path@3.0.0

Looks like fix-path version should be synced across deeplinks and deepcase-app.

Solution

npm run workspace-install --workspace_arg=deeplinks --package_arg="fix-path@4.0.0"