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
Use umi-server with ssr config "disableExternal: true" got a runtime error:
➜ normal git:(master) ✗ node server.js
internal/validators.js:125
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:125:11)
at Object.dirname (path.js:1260:5)
at resolve (/.../umi-server/examples/normal/dist/umi.server.js:1273:22)
at module.exports../node_modules/_app-root-path@2.2.1@app-root-path/lib/app-root-path.js.module.exports (/.../umi-server/examples/normal/dist/umi.server.js:1156:20)
at Object.<anonymous> (/.../umi-server/examples/normal/dist/umi.server.js:1119:18)
at Object../node_modules/_app-root-path@2.2.1@app-root-path/index.js (/.../umi-server/examples/normal/dist/umi.server.js:1120:30)
at __webpack_require__ (/.../umi-server/examples/normal/dist/umi.server.js:687:30)
at fn (/.../umi-server/examples/normal/dist/umi.server.js:61:20)
at createLocalStorage (/.../umi-server/examples/normal/dist/umi.server.js:22395:23)
at Object../src/pages/index.tsx (/.../umi-server/examples/normal/dist/umi.server.js:63967:67)
if use 'umi build' here directly, the config "disableExternal: true" sames doesn't work, and umi.server.js doesn't contains the dependencies.
node server.js
internal/validators.js:125
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:125:11)
at Object.dirname (path.js:1260:5)
at resolve (/.../umi-server/examples/normal/dist/umi.server.js:1273:22)
...
Context
Umi Version:
2.13.13
Node Version:
v10.16.3
Platform:
Darwin Kernel Version 19.3.0
macOS 10.15.3
The text was updated successfully, but these errors were encountered:
What happens?
Use umi-server with ssr config "disableExternal: true" got a runtime error:
Mini Showcase Repository(REQUIRED)
Just the official umi-server examples:
https://github.com/umijs/umi-server/tree/master/examples/normal
How To Reproduce
if use 'umi build' here directly, the config "disableExternal: true" sames doesn't work, and umi.server.js doesn't contains the dependencies.
Context
2.13.13
v10.16.3
Darwin Kernel Version 19.3.0
macOS 10.15.3
The text was updated successfully, but these errors were encountered: