v2.0.0 - Error: Cannot find module next/script
imported from @prismicio/next/dist/PrismicPreview.js
#105
Labels
bug
Something isn't working
I have just upgraded a project from
@prismicio/next v1.7.1
to2.0.0
as well as@prismicio/react v2.9.1
to3.0.0
and even with no other changes, thenext dev
command (and any other command that needs to parse the module imports, e.g. linting/testing/etc.) now fails with aCannot find module
error:Versions
@prismicio/next
: 2.0.0next
: 15.1.6Reproduction
I've pushed the update to this branch on my personal website which produces the error when you pull this code and try to run:
Link to repro: https://github.com/charles4221/charlesharwood.dev/tree/feat/prismic-upgrades-next-2-react-3
Error Log
The text was updated successfully, but these errors were encountered: