question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to locate '.../public/**/*' glob

See original GitHub issue

Version

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

  1. generate an app
  2. delete the public/img folder
  3. 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:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
HexPandaacommented, Feb 22, 2021

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 the public/ folder fixed the issue. It turns out that I had a a reference to <%= BASE_URL %>favicon.ico in my index.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 ?

0reactions
fangbinweicommented, Mar 15, 2021

Close via #6333

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found