vicaryV
Denoβ€’2y agoβ€’
1 reply
vicary

NPM imports fail on JSON require

When importing modules via npm: protocol, the embedded esbuild will throw the following error if the module tries to require("package.json") .
Error: Build failed with 1 error:
../../../../../Library/Caches/deno/deno_esbuild/{module}@{version}/node_modules/{module}/package.json:2:8: ERROR: Expected ";" but found ":"

In my case, the problematic module is checkout-sdk-node.

Is there known workaround for this?
Was this page helpful?