PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, July 17, 2022

[FIXED] What is NUXT Warning "Emitted value instead of an instance of Error" about?

 July 17, 2022     debugging, javascript, nuxt.js, vue.js, warnings     No comments   

Issue

I got this compiling warnings after applying this NUXT tutorial for adding Bulma as Global CSS:

nuxt-starter@1.0.0 dev /home/lsoave/Vue/nuxt-starter nuxt

nuxt:build App root: /home/lsoave/Vue/nuxt-starter +0ms nuxt:build Generating /home/lsoave/Vue/nuxt-starter/.nuxt files... +2ms
nuxt:build Generating files... +8ms nuxt:build Generating routes... +13ms nuxt:build Building files... +31ms nuxt:build Adding webpack middleware... +688ms ████████████████████ 100%

Build completed in 5.51s

WARNING Compiled with 14 warnings
13:30:56

warning in ./node_modules/bulma/css/bulma.css

(Emitted value instead of an instance of Error) postcss-custom-properties: /home/lsoave/Vue/sass/grid/columns.sass:469:4: Custom property ignored: not scoped to the top-level :root element (.columns.is-variable { ... --columnGap: ... })

@ ./node_modules/bulma/css/bulma.css 4:14-118 13:3-17:5 14:22-126
@ ./.nuxt/App.js @ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

...

Does anybody know why and how to get rid of those ?


Solution

As @P3trur0 stated in the comment, you should add the following to nuxt.config.js:

  /*
  ** Build configuration
  */
  build: {
    ...,
    postcss: {
      plugins: {
        "postcss-custom-properties": false
      }
    },
  }


Answered By - Shawn Lauzon
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing