unable to locate '.../public/**/*' glob
See original GitHub issueVersion
5.0.0-alpha.3
Environment info
System:
OS: Windows 10 10.0.19042
CPU: (12) x64 AMD Ryzen 5 2600X Six-Core Processor
Binaries:
Node: 14.15.4 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 88.0.4324.150
Edge: Spartan (44.19041.423.0), Chromium (88.0.705.68)
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.2.1
@vue/babel-helper-vue-transform-on: 1.0.2
@vue/babel-plugin-jsx: 1.0.3
@vue/babel-plugin-transform-vue-jsx: 1.2.1
@vue/babel-preset-app: 5.0.0-alpha.3
@vue/babel-preset-jsx: 1.2.4
@vue/babel-sugar-composition-api-inject-h: 1.2.1
@vue/babel-sugar-composition-api-render-instance: 1.2.4
@vue/babel-sugar-functional-vue: 1.2.2
@vue/babel-sugar-inject-h: 1.2.2
@vue/babel-sugar-v-model: 1.2.3
@vue/babel-sugar-v-on: 1.2.3
@vue/cli-overlay: 5.0.0-alpha.3
@vue/cli-plugin-babel: 5.0.0-alpha.3
@vue/cli-plugin-e2e-cypress: 5.0.0-alpha.3
@vue/cli-plugin-router: 5.0.0-alpha.3
@vue/cli-plugin-typescript: 5.0.0-alpha.3
@vue/cli-plugin-vuex: 5.0.0-alpha.3
@vue/cli-service: 5.0.0-alpha.3
@vue/cli-shared-utils: 5.0.0-alpha.3
@vue/compiler-core: 3.0.5
@vue/compiler-dom: 3.0.5
@vue/compiler-sfc: 3.0.5
@vue/compiler-ssr: 3.0.5
@vue/component-compiler-utils: 3.2.0
@vue/devtools-api: 6.0.0-beta.6
@vue/preload-webpack-plugin: 1.1.2
@vue/reactivity: 3.0.5
@vue/runtime-core: 3.0.5
@vue/runtime-dom: 3.0.5
@vue/shared: 3.0.5
@vue/web-component-wrapper: 1.3.0
typescript: 4.1.5 (4.0.5)
vue: 3.0.5
vue-class-store: 3.0.0
vue-hot-reload-api: 2.3.4
vue-i18n: 9.0.0-rc.6
vue-loader: 16.1.2 (15.9.6)
vue-router: 4.0.3
vue-style-loader: 4.1.2
vue-template-es2015-compiler: 1.9.1
npmGlobalPackages:
@vue/cli: Not Found
Steps to reproduce
- generate an app
- delete the public/img folder
- serve the app
What is expected?
no error
What is actually happening?
ERROR Failed to compile with 1 error 20:27:47 error
unable to locate ‘D:/Workspace/vue3/public/**/*’ glob
I think it’s a copy-webpack-plugin related bug, but i’m not 100% sure. Related Vue CLI code: here
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Error when trying to copy an empty folder with webpack
However this fails when the assets folder is empty: ERROR: unable to locate ... If I add one file to assets folder i...
Read more >error in unable to locate "glob" webpack
error in unable to locate glob webpack ; 1. new CopyWebpackPlugin({ ; 2. patterns: [ ; 3. { ; 4. from: __dirname +...
Read more >CopyWebpackPlugin
If you want only content src/directory-nested/ , you should only indicate glob in from . The path to the folder in which the...
Read more >copy-webpack-plugin
copy-webpack-plugin. TypeScript icon, indicating that this package has built-in type declarations. 11.0.0 • Public • Published 7 months ago.
Read more >Ota(updating the host) on jetson xavier nx, but unable to ...
E: Unable to locate package nsight-graphics-for-embeddedlinux-2021.1.1; E: Couldn't find any package by glob 'nsight-graphics-for-embeddedlinux- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I had the same problem while using the 5.0.0-alpha.4 version, I don’t have a
public/img/
folder, but simply adding a dummy favicon.ico file in thepublic/
folder fixed the issue. It turns out that I had a a reference to<%= BASE_URL %>favicon.ico
in myindex.html
.Throwing a more explicit error message might be useful.
@petergaal91 An image might be referenced somewhere in your code, could you provide an example repo or the steps you took to generate the app ?
Close via #6333