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

Time:05-03

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')

CodePudding user response:

Please try and removing tags with empty attributes, example:

<link rel="stylesheet" href="">

Ref: https://github.com/parcel-bundler/parcel/discussions/5385

CodePudding user response:

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

  • Related