Closed donskov closed 2 years ago
Hi, we just hit the same issue.
For what it's worth, we found a workaround by importing from '@peculiar/x509/build/x509.es.js'
instead of just '@peculiar/x509'
(see this answer: https://stackoverflow.com/a/68722155).
I published the new version @peculiar/x509@1.5.0
. It includes unpkg
field instead of browser
Please try it
@microshine Thank you. It works for me.
Package version
Usage example
Usage environment
Project created using https://create-react-app.dev/.
Problem description
Based on https://docs.npmjs.com/cli/v7/configuring-npm/package-json#browser.
Solution
Use:
Instead of:
https://github.com/PeculiarVentures/x509/blob/master/package.json#L7