javascript - Unhandled rejection Error: Invalid path -


when npm run dev react project, encounters error this:

unhandled rejection error: invalid path './dist/' 

someone told me should try absolute path, error lies there again.

unhandled rejection error: invalid path '/path/to/dist/' 

i confused~ encountered problem?

const output = {   path: './dist/',   filename: 'bundle.js',   publicpath: '../' }; 

i think leading ./ in path might problem. work-around, can try this:

path: require("path").resolve("./dist") 

also, error message, think absolute path you're using isn't working because has leading .


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -