Skip to content
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

entry config error #7398

Open
lambert959 opened this issue Jun 8, 2023 · 0 comments
Open

entry config error #7398

lambert959 opened this issue Jun 8, 2023 · 0 comments

Comments

@lambert959
Copy link

Version

5.0.8

Environment info

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz
  Binaries:
    Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.37)
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.4.0
    @vue/babel-helper-vue-transform-on:  1.0.2
    @vue/babel-plugin-jsx:  1.1.1
    @vue/babel-plugin-transform-vue-jsx:  1.4.0
    @vue/babel-preset-app:  5.0.8
    @vue/babel-preset-jsx:  1.4.0
    @vue/babel-sugar-composition-api-inject-h:  1.4.0
    @vue/babel-sugar-composition-api-render-instance:  1.4.0
    @vue/babel-sugar-functional-vue:  1.4.0
    @vue/babel-sugar-inject-h:  1.4.0
    @vue/babel-sugar-v-model:  1.4.0
    @vue/babel-sugar-v-on:  1.4.0
    @vue/cli-overlay:  5.0.8
    @vue/cli-plugin-babel: ~5.0.0 => 5.0.8
    @vue/cli-plugin-eslint: ~5.0.0 => 5.0.8
    @vue/cli-plugin-router:  5.0.8
    @vue/cli-plugin-vuex:  5.0.8
    @vue/cli-service: ~5.0.0 => 5.0.8
    @vue/cli-shared-utils:  5.0.8
    @vue/compiler-core:  3.3.4
    @vue/compiler-dom:  3.3.4
    @vue/compiler-sfc:  3.3.4
    @vue/compiler-ssr:  3.3.4
    @vue/component-compiler-utils:  3.3.0
    @vue/reactivity:  3.3.4
    @vue/reactivity-transform:  3.3.4
    @vue/runtime-core:  3.3.4
    @vue/runtime-dom:  3.3.4
    @vue/server-renderer:  3.3.4
    @vue/shared:  3.3.4
    @vue/web-component-wrapper:  1.3.0
    eslint-plugin-vue: ^8.0.3 => 8.7.1
    vue: ^3.2.13 => 3.3.4
    vue-eslint-parser:  8.3.0
    vue-hot-reload-api:  2.3.4
    vue-loader:  17.2.2 (15.10.1)
    vue-style-loader:  4.1.3
    vue-template-es2015-compiler:  1.9.1
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

when config the entry below, is suport in webpack latest version

entry: {

  content: "./src/content/main.js",

  background: "./src/main.js",

  sdk: {

    import: "./src/sdk/main.js",

    output: {

      libraryTarget: "umd",

    },

  },

}

What is expected?

pass validate entry

What is actually happening?

ERROR TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object
at new NodeError (node:internal/errors:371:5)
at validateString (node:internal/validators:119:11)
at Object.resolve (node:path:167:9)
at C:\Users\zhangcandu\Desktop\test\node_modules@vue\cli-service\lib\Service.js:329:48
at Array.map ()
at Service.resolveWebpackConfig (C:\Users\aaa\Desktop\test\node_modules@vue\cli-service\lib\Service.js:329:31)
at PluginAPI.resolveWebpackConfig (C:\Users\aaa\Desktop\test\node_modules@vue\cli-service\lib\PluginAPI.js:132:25)
at module.exports (C:\Users\aaa\Desktop\test\node_modules@vue\cli-service\lib\commands\build\resolveAppConfig.js:51:14)
at build (C:\Users\aaa\Desktop\test\node_modules@vue\cli-service\lib\commands\build\index.js:147:50)
at C:\Users\aaa\Desktop\test\node_modules@vue\cli-service\lib\commands\build\index.js:69:13


An error will be reported when the entry is configured as a complex object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant