#Turborepo package exported image - how to move to Nextjs public?

2 messages · Page 1 of 1 (latest)

austere plaza
#

It seems the path strings are hardcoded by webpack in the dist/index.mjs of the components package instead of the files being required(), so Nextjs has no idea that images are being imported at all.

When running in dev mode Nextjs is importing the source via webpack so the images are loading as NextJS image objects.

austere plaza
#

This is in all likelihood an issue with Webpack configuration as CSS files are being correctly "import" declared in the build output.