You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/bernardo.rodrigues/Documents/service/node_modules/tsup/dist/cli-default.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/Users/bernardo.rodrigues/Documents/service/node_modules/rollup/dist/shared/rollup.js:12:19)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rl-rewards-service@0.0.1 build: tsup src/index.ts
npm ERR! Exit status 1
I'm running Nodejs v14 is this a problem? I couldn't find the minimum requirements to use the package
the issue is that node:path wasn't available until v14.18:
(source)
but you're on v14.17. rollup's package.json actually does indicate this requirement:
so upgrading to the latest node v14 should fix your problem, but at the same time I recommend you actually upgrade to the current node lts (v18 as of writing this), as v14 is about to hit EOL:
(source)
edit: it might be nice to update the currently overly broad engine range of >=14 in this lib to >=14.8 to align w/ rollup:
Hi!
I'm trying to use tsup in my project but I receive the current error message when I try to build the project:
Error: Cannot find module 'node:path'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/Users/bernardo.rodrigues/Documents/service/node_modules/rollup/dist/shared/rollup.js:12:19)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rl-rewards-service@0.0.1 build:
tsup src/index.ts
npm ERR! Exit status 1
I'm running Nodejs v14 is this a problem? I couldn't find the minimum requirements to use the package
"engines": {
"node": ">=14.17.0",
"npm": "~6.14.13"
},
Upvote & Fund
The text was updated successfully, but these errors were encountered: