How should I resolve an ERROR occuring while compiling Assets (Laravel Mix)










0















I am not new with PHP, but I am a total beginner with PHP frameworks.
Recently I have started learning Laravel framework for PHP, so I decided to start with tutorials from Traversy Media channel. After I have tried to compile assets I got an ERROR: (An error occurs after npm run dev)



ERROR in ./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/lib/loader.js??ref--5-5!./resources/sass/app.scss
Module build failed: BrowserslistError: Unknown browser query `basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")`
at C:xampphtdocsmyappnode_modulesbrowserslistindex.js:164:11
at Array.reduce (<anonymous>)
at resolve (C:xampphtdocsmyappnode_modulesbrowserslistindex.js:132:18)
at browserslist (C:xampphtdocsmyappnode_modulesbrowserslistindex.js:224:16)
at Browsers.parse (C:xampphtdocsmyappnode_modulesautoprefixerlibbrowsers.js:61:16)
at new Browsers (C:xampphtdocsmyappnode_modulesautoprefixerlibbrowsers.js:52:30)
at loadPrefixes (C:xampphtdocsmyappnode_modulesautoprefixerlibautoprefixer.js:70:24)
at plugin (C:xampphtdocsmyappnode_modulesautoprefixerlibautoprefixer.js:81:24)
at LazyResult.run (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:277:20)
at LazyResult.asyncTick (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:192:32)
at processing.Promise.then._this2.processed (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:231:20)
at new Promise (<anonymous>)
at LazyResult.async (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:228:27)
at LazyResult.then (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:134:21)
at Promise.resolve.then.then (C:xampphtdocsmyappnode_modulespostcss-loaderlibindex.js:145:8)
at <anonymous>
@ ./resources/sass/app.scss 4:14-254
@ multi ./resources/js/app.js ./resources/sass/app.scss

I am trying to solve this problem but without success. I have tried to rebuild node-sass, also I've tried to reinstall all dependencies and change my @import path and nothing solved an error.
This is the code that refers to an error that occurs in **C:xamppmyappnode_modulesbrowserslistindex.js:164:11**


Resolve function for referring error



If you could help me with this i would really appreciate it, because I really need to speed up my learning process.



npm -v 6.1.0

node -v 8.11.3

composer -v 1.7.2

artisan --version (Laravel Framework) 5.7.13










share|improve this question
























  • Always post error messages as text, not images. Otherwise they are hard for people to copy and unable to be searched.

    – Devon
    Nov 13 '18 at 15:40











  • You also may want to upgrade your node version. The latest LTS is 10.13. You're quite behind. Always make sure you're on an updated version if you're using the latest version of laravel mix.

    – Devon
    Nov 13 '18 at 15:46











  • @Devon Thank you for your suggestions. I will update my node, do you think that node version is an actual problem causing an error?

    – Lucky
    Nov 13 '18 at 15:52











  • Edit your question, and your errors as text, not images.

    – Don't Panic
    Nov 13 '18 at 15:53











  • @Lucky, not sure, it's just always a good idea to run the latest node version when using mix. Since it's a browser query issue, what's your environment and which browsers are installed in that environment?

    – Devon
    Nov 13 '18 at 16:02















0















I am not new with PHP, but I am a total beginner with PHP frameworks.
Recently I have started learning Laravel framework for PHP, so I decided to start with tutorials from Traversy Media channel. After I have tried to compile assets I got an ERROR: (An error occurs after npm run dev)



ERROR in ./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/lib/loader.js??ref--5-5!./resources/sass/app.scss
Module build failed: BrowserslistError: Unknown browser query `basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")`
at C:xampphtdocsmyappnode_modulesbrowserslistindex.js:164:11
at Array.reduce (<anonymous>)
at resolve (C:xampphtdocsmyappnode_modulesbrowserslistindex.js:132:18)
at browserslist (C:xampphtdocsmyappnode_modulesbrowserslistindex.js:224:16)
at Browsers.parse (C:xampphtdocsmyappnode_modulesautoprefixerlibbrowsers.js:61:16)
at new Browsers (C:xampphtdocsmyappnode_modulesautoprefixerlibbrowsers.js:52:30)
at loadPrefixes (C:xampphtdocsmyappnode_modulesautoprefixerlibautoprefixer.js:70:24)
at plugin (C:xampphtdocsmyappnode_modulesautoprefixerlibautoprefixer.js:81:24)
at LazyResult.run (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:277:20)
at LazyResult.asyncTick (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:192:32)
at processing.Promise.then._this2.processed (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:231:20)
at new Promise (<anonymous>)
at LazyResult.async (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:228:27)
at LazyResult.then (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:134:21)
at Promise.resolve.then.then (C:xampphtdocsmyappnode_modulespostcss-loaderlibindex.js:145:8)
at <anonymous>
@ ./resources/sass/app.scss 4:14-254
@ multi ./resources/js/app.js ./resources/sass/app.scss

I am trying to solve this problem but without success. I have tried to rebuild node-sass, also I've tried to reinstall all dependencies and change my @import path and nothing solved an error.
This is the code that refers to an error that occurs in **C:xamppmyappnode_modulesbrowserslistindex.js:164:11**


Resolve function for referring error



If you could help me with this i would really appreciate it, because I really need to speed up my learning process.



npm -v 6.1.0

node -v 8.11.3

composer -v 1.7.2

artisan --version (Laravel Framework) 5.7.13










share|improve this question
























  • Always post error messages as text, not images. Otherwise they are hard for people to copy and unable to be searched.

    – Devon
    Nov 13 '18 at 15:40











  • You also may want to upgrade your node version. The latest LTS is 10.13. You're quite behind. Always make sure you're on an updated version if you're using the latest version of laravel mix.

    – Devon
    Nov 13 '18 at 15:46











  • @Devon Thank you for your suggestions. I will update my node, do you think that node version is an actual problem causing an error?

    – Lucky
    Nov 13 '18 at 15:52











  • Edit your question, and your errors as text, not images.

    – Don't Panic
    Nov 13 '18 at 15:53











  • @Lucky, not sure, it's just always a good idea to run the latest node version when using mix. Since it's a browser query issue, what's your environment and which browsers are installed in that environment?

    – Devon
    Nov 13 '18 at 16:02













0












0








0








I am not new with PHP, but I am a total beginner with PHP frameworks.
Recently I have started learning Laravel framework for PHP, so I decided to start with tutorials from Traversy Media channel. After I have tried to compile assets I got an ERROR: (An error occurs after npm run dev)



ERROR in ./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/lib/loader.js??ref--5-5!./resources/sass/app.scss
Module build failed: BrowserslistError: Unknown browser query `basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")`
at C:xampphtdocsmyappnode_modulesbrowserslistindex.js:164:11
at Array.reduce (<anonymous>)
at resolve (C:xampphtdocsmyappnode_modulesbrowserslistindex.js:132:18)
at browserslist (C:xampphtdocsmyappnode_modulesbrowserslistindex.js:224:16)
at Browsers.parse (C:xampphtdocsmyappnode_modulesautoprefixerlibbrowsers.js:61:16)
at new Browsers (C:xampphtdocsmyappnode_modulesautoprefixerlibbrowsers.js:52:30)
at loadPrefixes (C:xampphtdocsmyappnode_modulesautoprefixerlibautoprefixer.js:70:24)
at plugin (C:xampphtdocsmyappnode_modulesautoprefixerlibautoprefixer.js:81:24)
at LazyResult.run (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:277:20)
at LazyResult.asyncTick (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:192:32)
at processing.Promise.then._this2.processed (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:231:20)
at new Promise (<anonymous>)
at LazyResult.async (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:228:27)
at LazyResult.then (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:134:21)
at Promise.resolve.then.then (C:xampphtdocsmyappnode_modulespostcss-loaderlibindex.js:145:8)
at <anonymous>
@ ./resources/sass/app.scss 4:14-254
@ multi ./resources/js/app.js ./resources/sass/app.scss

I am trying to solve this problem but without success. I have tried to rebuild node-sass, also I've tried to reinstall all dependencies and change my @import path and nothing solved an error.
This is the code that refers to an error that occurs in **C:xamppmyappnode_modulesbrowserslistindex.js:164:11**


Resolve function for referring error



If you could help me with this i would really appreciate it, because I really need to speed up my learning process.



npm -v 6.1.0

node -v 8.11.3

composer -v 1.7.2

artisan --version (Laravel Framework) 5.7.13










share|improve this question
















I am not new with PHP, but I am a total beginner with PHP frameworks.
Recently I have started learning Laravel framework for PHP, so I decided to start with tutorials from Traversy Media channel. After I have tried to compile assets I got an ERROR: (An error occurs after npm run dev)



ERROR in ./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/lib/loader.js??ref--5-5!./resources/sass/app.scss
Module build failed: BrowserslistError: Unknown browser query `basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")`
at C:xampphtdocsmyappnode_modulesbrowserslistindex.js:164:11
at Array.reduce (<anonymous>)
at resolve (C:xampphtdocsmyappnode_modulesbrowserslistindex.js:132:18)
at browserslist (C:xampphtdocsmyappnode_modulesbrowserslistindex.js:224:16)
at Browsers.parse (C:xampphtdocsmyappnode_modulesautoprefixerlibbrowsers.js:61:16)
at new Browsers (C:xampphtdocsmyappnode_modulesautoprefixerlibbrowsers.js:52:30)
at loadPrefixes (C:xampphtdocsmyappnode_modulesautoprefixerlibautoprefixer.js:70:24)
at plugin (C:xampphtdocsmyappnode_modulesautoprefixerlibautoprefixer.js:81:24)
at LazyResult.run (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:277:20)
at LazyResult.asyncTick (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:192:32)
at processing.Promise.then._this2.processed (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:231:20)
at new Promise (<anonymous>)
at LazyResult.async (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:228:27)
at LazyResult.then (C:xampphtdocsmyappnode_modulespostcssliblazy-result.js:134:21)
at Promise.resolve.then.then (C:xampphtdocsmyappnode_modulespostcss-loaderlibindex.js:145:8)
at <anonymous>
@ ./resources/sass/app.scss 4:14-254
@ multi ./resources/js/app.js ./resources/sass/app.scss

I am trying to solve this problem but without success. I have tried to rebuild node-sass, also I've tried to reinstall all dependencies and change my @import path and nothing solved an error.
This is the code that refers to an error that occurs in **C:xamppmyappnode_modulesbrowserslistindex.js:164:11**


Resolve function for referring error



If you could help me with this i would really appreciate it, because I really need to speed up my learning process.



npm -v 6.1.0

node -v 8.11.3

composer -v 1.7.2

artisan --version (Laravel Framework) 5.7.13







php laravel sass laravel-mix






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 14:44







Lucky

















asked Nov 13 '18 at 15:20









Lucky Lucky

13




13












  • Always post error messages as text, not images. Otherwise they are hard for people to copy and unable to be searched.

    – Devon
    Nov 13 '18 at 15:40











  • You also may want to upgrade your node version. The latest LTS is 10.13. You're quite behind. Always make sure you're on an updated version if you're using the latest version of laravel mix.

    – Devon
    Nov 13 '18 at 15:46











  • @Devon Thank you for your suggestions. I will update my node, do you think that node version is an actual problem causing an error?

    – Lucky
    Nov 13 '18 at 15:52











  • Edit your question, and your errors as text, not images.

    – Don't Panic
    Nov 13 '18 at 15:53











  • @Lucky, not sure, it's just always a good idea to run the latest node version when using mix. Since it's a browser query issue, what's your environment and which browsers are installed in that environment?

    – Devon
    Nov 13 '18 at 16:02

















  • Always post error messages as text, not images. Otherwise they are hard for people to copy and unable to be searched.

    – Devon
    Nov 13 '18 at 15:40











  • You also may want to upgrade your node version. The latest LTS is 10.13. You're quite behind. Always make sure you're on an updated version if you're using the latest version of laravel mix.

    – Devon
    Nov 13 '18 at 15:46











  • @Devon Thank you for your suggestions. I will update my node, do you think that node version is an actual problem causing an error?

    – Lucky
    Nov 13 '18 at 15:52











  • Edit your question, and your errors as text, not images.

    – Don't Panic
    Nov 13 '18 at 15:53











  • @Lucky, not sure, it's just always a good idea to run the latest node version when using mix. Since it's a browser query issue, what's your environment and which browsers are installed in that environment?

    – Devon
    Nov 13 '18 at 16:02
















Always post error messages as text, not images. Otherwise they are hard for people to copy and unable to be searched.

– Devon
Nov 13 '18 at 15:40





Always post error messages as text, not images. Otherwise they are hard for people to copy and unable to be searched.

– Devon
Nov 13 '18 at 15:40













You also may want to upgrade your node version. The latest LTS is 10.13. You're quite behind. Always make sure you're on an updated version if you're using the latest version of laravel mix.

– Devon
Nov 13 '18 at 15:46





You also may want to upgrade your node version. The latest LTS is 10.13. You're quite behind. Always make sure you're on an updated version if you're using the latest version of laravel mix.

– Devon
Nov 13 '18 at 15:46













@Devon Thank you for your suggestions. I will update my node, do you think that node version is an actual problem causing an error?

– Lucky
Nov 13 '18 at 15:52





@Devon Thank you for your suggestions. I will update my node, do you think that node version is an actual problem causing an error?

– Lucky
Nov 13 '18 at 15:52













Edit your question, and your errors as text, not images.

– Don't Panic
Nov 13 '18 at 15:53





Edit your question, and your errors as text, not images.

– Don't Panic
Nov 13 '18 at 15:53













@Lucky, not sure, it's just always a good idea to run the latest node version when using mix. Since it's a browser query issue, what's your environment and which browsers are installed in that environment?

– Devon
Nov 13 '18 at 16:02





@Lucky, not sure, it's just always a good idea to run the latest node version when using mix. Since it's a browser query issue, what's your environment and which browsers are installed in that environment?

– Devon
Nov 13 '18 at 16:02












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53284152%2fhow-should-i-resolve-an-error-occuring-while-compiling-assets-laravel-mix%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53284152%2fhow-should-i-resolve-an-error-occuring-while-compiling-assets-laravel-mix%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế