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
Post a Comment