Incompatability serve-handler dengan versi path-to-regexp #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Ketika
yarn run builddi sansani live, ditemukan issue:Penjelasan:
TypeError: pathToRegExp.compile is not a functionis caused by an incompatibility between the
serve-handlerpackage (used internally byserve) and the version ofpath-to-regexpinstalled in your project. This issue arises because newer versions ofpath-to-regexphave removed or changed thecompilemethod, whichserve-handlerrelies on.Solusinya
Modify
/home/pacs/Viewers/node_modules/serve-handler/src/index.js