Open lukzerom opened 1 year ago
Sounds related to these lines, what is your webpack config? https://github.com/thgh/payload-plugin-oauth/blob/d422f815127d90e3356b355bc22a41b45a4af0d5/src/index.ts#L209-L219
Hey! No custom webpack config from my side. I guess it comes from withPayload method from @payloadcms/next-payload or directly from NextJS.
Maybe it's because of the Button import, you could copy the index.ts file and leave out the Button code. Next.js probably doesn't transpile things in node_modules whereas payload does.
Hi everyone,
Since I have been stuck for few days I have decided to ask here. I am building right now CMS using payload + next (payloadcms package). We used there payload-plugin-oauth. But after I have used this plugin - strange errors started to show up - it try to compile scss files from node_modules/payload - and error is about unexpected token in first lines (@import). I have tried to change node, payload versions etc, deleted node modules, installing it again , nothing help. Issue is both in runtime and using builded app. When plugin is deleted - everything is fine.
node: v16.20.2
Node modules dependencies
Next config:
error:
Do you know what can be wrong with this? Best regards