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.

@vueuse/core error after cloning

See original GitHub issue

I cloned the rep I start pnpm dev and I get this error :

failed to load config from /home/patrice/Websites/obizoo/obizoo.vue/vite.config.ts
error when starting dev server:
Error: [auto-import] failed to load @vueuse/core, have you installed it?
    at vueuse_core_default (/home/patrice/Websites/obizoo/obizoo.vue/node_modules/.pnpm/unplugin-auto-import@0.1.7_vite@2.5.1/node_modules/unplugin-auto-import/dist/chunk-U6Z5VRX4.js:136:13)
    at /home/patrice/Websites/obizoo/obizoo.vue/node_modules/.pnpm/unplugin-auto-import@0.1.7_vite@2.5.1/node_modules/unplugin-auto-import/dist/chunk-G7WHTJIF.js:32:51
    at Array.forEach (<anonymous>)
    at flattenImportsMap (/home/patrice/Websites/obizoo/obizoo.vue/node_modules/.pnpm/unplugin-auto-import@0.1.7_vite@2.5.1/node_modules/unplugin-auto-import/dist/chunk-G7WHTJIF.js:27:36)
    at resolveOptions (/home/patrice/Websites/obizoo/obizoo.vue/node_modules/.pnpm/unplugin-auto-import@0.1.7_vite@2.5.1/node_modules/unplugin-auto-import/dist/chunk-G7WHTJIF.js:16:19)
    at /home/patrice/Websites/obizoo/obizoo.vue/node_modules/.pnpm/unplugin-auto-import@0.1.7_vite@2.5.1/node_modules/unplugin-auto-import/dist/chunk-G7WHTJIF.js:108:20
    at /home/patrice/Websites/obizoo/obizoo.vue/node_modules/.pnpm/unplugin@0.2.3_vite@2.5.1/node_modules/unplugin/dist/index.cjs:45:23
    at Object.<anonymous> (/home/patrice/Websites/obizoo/obizoo.vue/vite.config.ts:58:30)
    at Module._compile (internal/modules/cjs/loader.js:1251:30)
    at Object.require.extensions.<computed> [as .ts] (/home/patrice/Websites/obizoo/obizoo.vue/node_modules/.pnpm/vite@2.5.1/node_modules/vite/dist/node/chunks/dep-972722fa.js:75935:20)
 ERROR  Command failed with exit code 1.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
flaholcommented, Sep 3, 2021

Problem solved On Ubuntu 21.04 an old version of node was installed 12.x.x with sudo apt install node. Newest version of node 16.8.0 was installed with nvm. node -v would return v16.8.0 but I guess some files from 12.x.x were still used.

I removed both versions and then re installed node with nvm, no error

0reactions
mulhooncommented, Sep 9, 2021

npx envinfo --system --binaries

  System:
    OS: macOS 11.5.2
    CPU: (8) x64 Apple M1
    Memory: 145.06 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.4 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.5.4 - /usr/local/bin/npm
Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run errors after cloning Vue 3 repo to a new machine
Hi I've just cloned one of my Vue 3 repositories from GitHub onto a different laptop. Ran npm install to build the node_modules....
Read more >
@vueuse/core - npm
Start using @vueuse/core in your project by running `npm i @vueuse/core`. There are 1142 other projects in the npm registry using @vueuse/core.
Read more >
Fix Error After Cloning HDD SSD - Error in file winload.efi
Reparar el error después de clonar HDD SSD - Error en el archivo winload.efiCommands to use:diskpartlist volumeselect volume X : X partition ...
Read more >
Vue cloning issue - Stack Overflow
I can't seem to figure out why the event listener is not getting attached to the clones. Will cloneNode() mess up Vue?
Read more >
VueUse | VueUse
View on GitHub. VueUse ... @vueuse/core. Jelf's avatar. Jelf. useElementByPoint useScreenSafeArea. webfansplz's avatar. webfansplz. FE Developer
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