-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Tests failing on lts/* #79
Comments
I give a try with the v16 LTS, but it didn't work 😢 on the following project: when I tried to execute I got the following error: ➜ nextjs-ssg git:(update/nodejs-v16) ✗ npm run build
> [email protected] build
> npx run-s clean next:build
Watching /machine-path/github/erkobridee/nextjs-ssg and all sub-directories not excluded by your .gitignore. Will not monitor dotfiles.
Found & ignored ./.husky ; is listed in .gitignore
Found & ignored ./node_modules ; is listed in .gitignore
Starting: clean
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '/machine-path/github/erkobridee/nextjs-ssg/clean'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: [] environment: ➜ nextjs-ssg git:(update/nodejs-v16) ✗ node -v
v16.15.1
➜ nextjs-ssg git:(update/nodejs-v16) ✗ npm -v
8.11.0
➜ nextjs-ssg git:(update/nodejs-v16) ✗ system_profiler SPSoftwareDataType SPHardwareDataType
Software:
System Software Overview:
System Version: macOS 12.3.1 (21E258)
Kernel Version: Darwin 21.4.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: {hidded}
User Name: {hidded}
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
Time since boot: 24 days 17:25
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro18,2
Chip: Apple M1 Max
Total Number of Cores: 10 (8 performance and 2 efficiency)
Memory: 32 GB
System Firmware Version: 7459.101.3
OS Loader Version: 7459.101.3
Serial Number (system): {hidded}
Hardware UUID: {hidded}
Provisioning UDID: {hidded}
Activation Lock Status: Enabled ps.: previously I was using the node.js v14 LTS, which works fine |
I wonder if it has to do with running npx inside of a script field. That shouldn't be necessary as devDependencies are made available in the PATH when running in the script field context. But it does sound related due to the issue being triggered by changing versions of node/npm. |
EDIT nevernmind. |
Ok I played around with your project a little bit. A couple notes:
This works, and avoids the unessisary call out to that node script where its just shells out to an npx call. If someone wants to look into why |
@bcomnes thanks for the feedback o/ a bit of context of why I used the the npx command on the node.js v14 worked like an alias into the local so I suspect that the npx changed between the node.js v14 and the v16 and that behavior didn't work anymore |
@bcomnes just to keep you posted, I followed up on your tip and that fixed my issue, and at least the build also worked at the GitHub pipeline 😄 my own PR to move forward to node.js v16 the pipelines executions pull request validation build and deploy to GitHub pages |
Cool, glad that worked. npm and npx can change in weird ways over time. |
Tests need some love on
lts/*
.The text was updated successfully, but these errors were encountered: