reactjsreact-router-domparceljs

After adding react-router-dom following error is shown by Parcel


When I added react-router-dom in my react project following error is thrown when it is built using parcel. How can I solve this?

AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
(0, _assert().default)(node.type === 'file')

Solution

  • In my case, after deleting the .parcel-cache folder and then re-run the project, the problem was resolved.