Alzaabi98's avatar

another npm run dev error "The provided value "public" is not an absolute path!"

I have issue running npm run dev.. which is cant find find cross-env.js then I have added /dist/bin/cross-env.js and solved that issue..

now i got this error ??

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.output.path: The provided value "public" is not an absolute path!

any help

0 likes
3 replies
AddWebContribution's avatar

You should update your composer.json file

Fix Webpack version to 2.2.1

"devDependencies": {
    ...
    "webpack": "2.2.1",
    ...
}

Hope it's work !

Alzaabi98's avatar

Hi saurabhd,

I cant find section with "devDependencies" in composer.json.. but I added like below :


"require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "webpack": "2.2.1",
        "phpunit/phpunit": "~5.7"
    },

still the same issue ..

Alzaabi98's avatar

I did resolve it ,

i deleted the folder node_modules from the project. then I did :

from local machine not from homestead : npm install

and then it worked "npm run dev"

not sure why it was not working when i did install npm in homestead ..

Please or to participate in this conversation.