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.

head.addEntry is not a function

See original GitHub issue

Environment


  • Operating System: Linux
  • Node Version: v16.14.0
  • Nuxt Version: 3.0.0-rc.12
  • Nitro Version: 0.6.1
  • Package Manager: npm@8.3.1
  • Builder: vite
  • User Config: buildModules
  • Runtime Modules: -
  • Build Modules: @nuxtjs/tailwindcss@6.1.3

Reproduction

https://github.com/nuxt/framework/

Describe the bug

When i run dev, giving this error

head.addEntry is not a function

at ./node_modules/nuxt/dist/head/runtime/lib/vueuse-head.plugin.mjs:11:8
at fn (./node_modules/nuxt/dist/app/nuxt.mjs:148:27)
at Object.callAsync (./node_modules/unctx/dist/index.mjs:49:19)
at callWithNuxt (./node_modules/nuxt/dist/app/nuxt.mjs:150:23)
at applyPlugin (./node_modules/nuxt/dist/app/nuxt.mjs:94:29)
at Module.applyPlugins (./node_modules/nuxt/dist/app/nuxt.mjs:104:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async createNuxtAppServer (./node_modules/nuxt/dist/app/entry.mjs:30:7)
at async default (./node_modules/@nuxt/vite-builder/dist/runtime/vite-node.mjs:27:18)
at async Object.renderToString (./node_modules/vue-bundle-renderer/dist/runtime.mjs:172:19)

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:10
  • Comments:18

github_iconTop GitHub Comments

14reactions
AsuraLuocommented, Nov 12, 2022

@piscis I fixed this issue by yarn or npm add resolutions in package.json, thanks

 "resolutions": {
    "@vueuse/head": "v1.0.0-rc.14"
  }
10reactions
pisciscommented, Nov 12, 2022

I can confirm this is caused by a upstream release of @vueuse/head and I was able to fix it with pnpm by overwrite vueuse/head and set it to v1.0.0-rc.14 like so in package.json:

...
"pnpm": {
    "overrides": {
      "@vueuse/head": "v1.0.0-rc.14"
    }
  }
...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Nuxt.js script does not get added to head - Stack Overflow
I attempted to add the Google Identity services script to nuxt.config.ts , which should expose window.google . // https://v3.nuxtjs.org/api/ ...
Read more >
JavaScript: Uncaught TypeError: n is not a function
Uncaught TypeError : 'n' is not a function: This is a standard JavaScript error when trying to call a function before it is...
Read more >
Encore: Setting up your Project (Symfony Docs)
The key part is addEntry() : this tells Encore to load the assets/app.js file ... If you are not using Symfony you won't...
Read more >
pandas.DataFrame.append — pandas 1.5.2 documentation
Append rows of other to the end of caller, returning a new object. ... Columns in other that are not in the caller...
Read more >
jQuery Plugins / Bootstrap > Webpack Encore - SymfonyCasts
This imports an entirely different jQuery object... and this one does not have the tooltip function! To say this in a different way,...
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