ionic-team / pwa-elements

Quality UI experiences for Web APIs that require custom UI (such as media/camera).
https://medium.com/@maxlynch/building-the-progressive-web-app-os-57daebcb69c1
MIT License
168 stars 50 forks source link

Running this in nextjs with next dev --turbo errors #137

Closed BjoernRave closed 1 month ago

BjoernRave commented 1 month ago

This package is currently the last thing holding me back from using turbopack in dev.

I call defineCustomElements(window) in my Rootlayout in a useEffect.

When I start my app I get this error:

Screenshot 2024-10-22 at 18 08 59

It has a link which links to this resource: https://nextjs.org/docs/messages/module-not-found

Unfortunately its hard to tell what the exact problem is since you can only see minified code for some reason, but the path should maybe give a hint: ./node_modules/.pnpm/@ionic+pwa-elements@3.3.0/node_modules/@ionic/pwa-elements/dist/esm-es5/index-1c5c47b4.js:1:18359

BjoernRave commented 1 month ago

for anyone running into this, when I upgraded to next 15 the error disappeared, so closing it again :)