Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when building strapi in NX #169

Closed
bkeetman opened this issue Oct 5, 2023 · 8 comments
Closed

Getting error when building strapi in NX #169

bkeetman opened this issue Oct 5, 2023 · 8 comments

Comments

@bkeetman
Copy link

bkeetman commented Oct 5, 2023

Getting this error when trying to build strapi.

Both in the root package.json or the apps folder there is no:

@strapi/strapi/lib/commands/builders

Full error:

npx nx build cms --verbose


> nx run cms:build


 >  NX   Cannot find module '@strapi/strapi/lib/commands/builders'

   Require stack:
   - /Users/brian/dev/md/sales_service/node_modules/@nx-extend/strapi/src/executors/build/build.impl.js
   - /Users/brian/dev/md/sales_service/node_modules/nx/src/config/schema-utils.js
   - /Users/brian/dev/md/sales_service/node_modules/nx/src/command-line/run/executor-utils.js
   - /Users/brian/dev/md/sales_service/node_modules/nx/src/command-line/run/run.js
   - /Users/brian/dev/md/sales_service/node_modules/nx/bin/run-executor.js

Error: Cannot find module '@strapi/strapi/lib/commands/builders'
Require stack:
- /Users/brian/dev/md/sales_service/node_modules/@nx-extend/strapi/src/executors/build/build.impl.js
- /Users/brian/dev/md/sales_service/node_modules/nx/src/config/schema-utils.js
- /Users/brian/dev/md/sales_service/node_modules/nx/src/command-line/run/executor-utils.js
- /Users/brian/dev/md/sales_service/node_modules/nx/src/command-line/run/run.js
- /Users/brian/dev/md/sales_service/node_modules/nx/bin/run-executor.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/Users/brian/dev/md/sales_service/node_modules/@nx-extend/strapi/src/executors/build/build.impl.js:5:20)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
@bkeetman bkeetman changed the title Getting error when building strapi Getting error when building strapi in NX Oct 5, 2023
@TriPSs
Copy link
Owner

TriPSs commented Oct 5, 2023

What version of @nx-extend/strapi are you using?

@bkeetman
Copy link
Author

bkeetman commented Oct 5, 2023

6.1.7

"@nx-extend/strapi": "^6.1.7",

@TriPSs
Copy link
Owner

TriPSs commented Oct 5, 2023

Please update to 6.1.8, that updates to the latest version of Strapi

@TriPSs TriPSs closed this as completed Oct 5, 2023
@nitintecg
Copy link
Contributor

nitintecg commented Oct 31, 2023

@TriPSs im getting this error in 7.0.0 version and using nx@17 version
image

@TriPSs
Copy link
Owner

TriPSs commented Oct 31, 2023

What version of Strapi do you use locally?

@nitintecg
Copy link
Contributor

im using this "@strapi/strapi": "^4.15.0"

@TriPSs
Copy link
Owner

TriPSs commented Oct 31, 2023

#174 will fix this, very weird, their interface said there was an export but inside the lib the actual index file was missing

@nitintecg
Copy link
Contributor

nitintecg commented Nov 1, 2023

@TriPSs thanks now issue is fixed in 7.0.1 version

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

No branches or pull requests

3 participants