Skip to content

Can't resolve 'path' #57

Answered by ChristianMurphy
alishefaee asked this question in Q&A
Discussion options

You must be logged in to vote

The answer is in the log 🙂

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

path is a part of vFile and likely will continue to be (see #16)
To resolve this, webpack 5 needs to be told to shim path, see #38 (comment) and #38 (comment) for examples of how shimming can be done.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ChristianMurphy
Comment options

@ChristianMurphy
Comment options

Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants