Closed ericmikkelsen closed 3 years ago
Could you create a repo with the issue? I wasn't able to reproduce it.
Unrelated thank you
I can reproduce this.
npx create-next-app@latest
npm install style9 next-transpile-modules --save
@johanholmerin - repo https://github.com/inlineblock/testt
This seems to be caused by an issue with Next.js and Webpack 5, and not be specific to style9. Removing the .next
directory or switching to Webpack 4 appears to solve it. Disabling caching in Webpack 5 also seems to work, but causes Next.js to freak out.
@inlineblock @ericmikkelsen Just a head up, this issue is fixed by #58 and released in style9@0.11.0. If you are using the latest version of Next.js, please check out #61.
I have to use _doucment.tsx in Next.js to add the lang attribute to the html element. And it I keep seeing this error on a static export
Here's my _document.tsx
And my index.tsx
(unrelated this is a very cool project)