Open ZombieBrand opened 2 years ago
Having the same issue. Does anyone know a solution for this?
Hello, yes I am also currently having the same issue but not sure yet what the impact is and where it comes from.
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined at new NodeError (node:internal/errors:371:5) at validateString (node:internal/validators:119:11) at Object.join (node:path:1172:7) at Object.readPackage (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/folders.js:131:24) at readPackage (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js:78:20) at getLink (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js:170:15) at /usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js:58:16 at Array.map (
) at findDependencies (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js:53:5) at Object.list (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js:36:5) { code: 'ERR_INVALID_ARG_TYPE' }
I am started to update my vue-vite-vuetify-ceisum-template (https://github.com/meschg/vue-stack-cesium) and the problem was related to sass in my project.
Removing "sass": 1.49.8 and the error seems to be gone.
Kind regards,
I am having the same issue when I run vue ui
and then browse to 'project dependencies' in the ui.
Having the same issue
Having this issue lately, but with "from" instead of "path" on an old project that always worked before. Output looks like this:
ERROR Failed to compile with 1 error 12:08:48 AM
error in ./src/LiveCode.vue?vue&type=template&id=a887fc58&
Syntax Error: Thread Loader (Worker 5)
The "from" argument must be of type string. Received undefined
@ ./src/LiveCode.vue?vue&type=template&id=a887fc58& 1:0-525 1:0-525
@ ./src/LiveCode.vue
@ ./src/index.js
@ ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
I solved my case by pinning all Vue build-related dependencies. Something had an in-range breaking change somewhere.
We had this issue as well and it was caused by race conditions with a "non-serializable" loader. In our case, it was sass-loader. It's always sass...
Version
4.5.14
Environment info
What is actually happening?
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined at new NodeError (node:internal/errors:371:5) at validateString (node:internal/validators:119:11) at Object.join (node:path:1172:7) at Object.readPackage (/Users/cheyongzhi/.config/yarn/global/node_modules/@vue/cli-ui/apollo-server/connectors/folders.js:131:24) at readPackage (/Users/cheyongzhi/.config/yarn/global/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js:78:20) at getLink (/Users/cheyongzhi/.config/yarn/global/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js:170:15) at /Users/cheyongzhi/.config/yarn/global/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js:58:16 at Array.map ()
at findDependencies (/Users/cheyongzhi/.config/yarn/global/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js:53:5)
at Object.list (/Users/cheyongzhi/.config/yarn/global/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js:36:5) {
code: 'ERR_INVALID_ARG_TYPE'
}
(node:80985) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/cheyongzhi/Desktop/work/VUE_IFW/node_modules/vuex/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use
node --trace-deprecation ...
to show where the warning was created)