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

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Copy range with conditional formatting -

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