Failed to build Astro site while using @cloudflare/pages-plugin-sentry
Trying to integrate sentry plugin for cloudflare with astro and it is failing to build.
The setup is like this
The error that I am getting it with the sentry package
Package versions:
3 Replies
(node:48390) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.Make sure you have "
type": "module"
in your package.jsonI have that for the astro project, I think it is complaining about it from the sentry package?
Verified that the
@cloudflare/pages-plugin-sentry
is missing the type=module.
For now to unblock myself and for someone else who might be facing this issue, I am directly using the https://www.npmjs.com/package/toucan-js package which is used internally by this package directly.npm
toucan-js
Cloudflare Workers client for Sentry. Latest version: 3.1.0, last published: 5 months ago. Start using toucan-js in your project by running
npm i toucan-js
. There are 16 other projects in the npm registry using toucan-js.