Open peter-lyons-kehl opened 1 year ago
UPDATE: After applying steps from https://github.com/WebCrateApp/webcrate/blob/master/CONTRIBUTING.md:
❯ npm run dev
> webcrate@1.4.3 predev
> npm run clean
> webcrate@1.4.3 clean
> rimraf dist build .nuxt
> webcrate@1.4.3 dev
> nuxt
ERROR ServerMiddleware Error: Cannot find module './router/index.js'
Require stack:
- /share/pkehl/GIT/webcrate/server/index.ts
Require stack:
- server/index.ts
at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
at Function.resolve (node:internal/modules/helpers:125:19)
at _resolve (node_modules/jiti/dist/jiti.js:1:244204)
at jiti (node_modules/jiti/dist/jiti.js:1:246368)
at server/index.ts:10:37
at Resolver.jiti [as _require] (node_modules/jiti/dist/jiti.js:1:248448)
at Resolver.requireModule (node_modules/@nuxt/core/dist/core.js:381:29)
at Server._requireMiddleware (node_modules/@nuxt/server/dist/server.js:836:39)
at Server._normalizeMiddleware (node_modules/@nuxt/server/dist/server.js:783:25)
at Server.resolveMiddleware (node_modules/@nuxt/server/dist/server.js:856:23)
at Server.useMiddleware (node_modules/@nuxt/server/dist/server.js:885:36)
at Server.setupMiddleware (node_modules/@nuxt/server/dist/server.js:715:12)
at async Server.ready (node_modules/@nuxt/server/dist/server.js:640:5)
at async Nuxt._init (node_modules/@nuxt/core/dist/core.js:482:7)
╭──────────────────────────────────────────╮
│ │
│ Nuxt @ v2.15.8 │
│ │
│ ▸ Environment: development │
│ ▸ Rendering: client-side │
│ ▸ Target: static │
│ │
│ Listening: http://192.168.0.38:3000/ │
│ │
╰──────────────────────────────────────────╯
ℹ Preparing project for development
ℹ Initial build may take a while
ℹ Discovered Components: .nuxt/components/readme.md
✔ Builder initialized
✔ Nuxt files generated
WARN Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
● Client █████████████████████████ building (10%) 1/2 modules 1 active
node_modules/webpack-hot-middleware/client.js
node:internal/crypto/hash:69
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:138:10)
at module.exports (/share/pkehl/GIT/webcrate/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/share/pkehl/GIT/webcrate/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/share/pkehl/GIT/webcrate/node_modules/webpack/lib/NormalModule.js:471:10)
at /share/pkehl/GIT/webcrate/node_modules/webpack/lib/NormalModule.js:503:5
at /share/pkehl/GIT/webcrate/node_modules/webpack/lib/NormalModule.js:358:12
at /share/pkehl/GIT/webcrate/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/share/pkehl/GIT/webcrate/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at Array.<anonymous> (/share/pkehl/GIT/webcrate/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
at Storage.finished (/share/pkehl/GIT/webcrate/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
at /share/pkehl/GIT/webcrate/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
at /share/pkehl/GIT/webcrate/node_modules/graceful-fs/graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v20.4.0
webcrate on new-space [!?] via v20.4.0 took 4s
❯ node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
RpcIpcMessagePortClosedError: Cannot send the message - the message port has been closed for the process 173260.
at /share/pkehl/GIT/webcrate/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:47:47
at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
code: undefined,
signal: undefined
}
Node.js v20.4.0
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
RpcIpcMessagePortClosedError: Cannot send the message - the message port has been closed for the process 173259.
at /share/pkehl/GIT/webcrate/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:47:47
at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
code: undefined,
signal: undefined
}
Node.js v20.4.0
Summary: Can't run
new-space
branch (63cf695923678acb356e90314137edb5761b78e9) locally (with Node 20.4.0, NPM 9.8.0). (But, it seems to run well on Deta.Space.)🐞 Describe the bug
Hi Maximilian or friend,
Thank you for Deta & WebCrate. Looking forward to using them & contributing.
Environment: Current Manjaro (stable Arch, x64) Linux (current stable kernel
6.3.5-2
), Node20.4.0
, NPM9.8.0
(installed vianvm
). (All the below is running not as root/via sudo, but as an ordinary user.)FIRST: (but potentially unrelated): Instead of
space dev
I've triednpm run build
. That complained about needingrimraf
. So I've installed it withnpm install rimraf
. FYI: That reports: 78 vulnerabilities (51 moderate, 25 high, 2 critical).SECOND:
THIRD: on Deta.Space:
Please, shed some light. Node/NPM is outside of my expertise, but wherever I can, I'll contribute, I'll update docs...
Thank you in advance for any tips on developing locally.