ERR_REQUIRE_ESM
error on start-slicemachine
due to incorrect node-fetch
version
#467
Labels
bug
Something isn't working
Versions
Reproduction
Run the following commands to create a reproduction.
Steps to reproduce
Start the project created above.
What is expected?
Slice Machine starts.
What is actually happening?
This happens because
slice-machine-ui
does not listnode-fetch@cjs
as a dependency. It is listed in the monorepo's rootpackage.json
, which does not get copied to the published package.Current workaround: install a CJS-compatible version of
node-fetch
into a project. This will conflict if the project actually needs the ESM version.The text was updated successfully, but these errors were encountered: