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.

When will head function be supported?

See original GitHub issue

I am using version 2.3.0 with Nuxt 2.13.3 - I am using a Head function in nuxt.config.js

Googling reveals that a PR was merged to fix notify users of this exact issue https://github.com/nuxt-community/gtm-module/issues/14

[@nuxtjs/gtm] head is provided as a function which is not supported by this module at the moment. Removing user-provided head.

Will this issue be fixed?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tskocacommented, Aug 12, 2020

First of all, thank you for your reply. I fixed this warning message but how? I fixed my head options as object again thanks for the reply

1reaction
pi0commented, Aug 12, 2020

Hi. Actually head as function will be removed for nuxt3 because of limitations it brings. You can alternatively put same logic in layout files 😃

More context: the function from nuxt.config, will be serialized to app template. in order to override it at module level, we need to change the AST or put it in a wrapper function which adds more overhead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The head() and tail() function in R - Detailed Reference
The head() function in R is used to display the first n rows present in the input data frame. In this section, we...
Read more >
What are head and tail functions in pandas? - Educative.io
The head function in Python displays the first five rows of the dataframe by default. It takes in a single parameter: the number...
Read more >
HEAD - HTTP - MDN Web Docs
The HTTP HEAD method requests the headers that would be returned if the HEAD request's URL was instead requested with the HTTP GET...
Read more >
REST: Should HEAD always be supported when GET is?
All general-purpose servers MUST support the methods GET and HEAD. All other methods are OPTIONAL. This does not mean that your api must...
Read more >
head: Return the First or Last Parts of an Object - Rdrr.io
Returns the first or last parts of a vector, matrix, table, data frame or function. Since head() and tail() are generic functions, they...
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