NextJs Unable to initialise provider
![ben613187461](https://s.gravatar.com/avatar/6d33d848e4d1bc60e97c80cd64950964?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fbe.png)
Hi,
I've followed the getting started guide in an attempt to configure cord within my existing nextjs application.. When calling the provider in app.tsx:
<CordProvider clientAuthToken="X">...
I am getting this error:
./node_modules/@cord-sdk/react/dist/mjs/experimental/components/helpers/Separator.css.ts.vanilla.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/@cord-sdk/react/dist/mjs/index.js
Per the nextjs link referenced, it seems that the way cord exports css is not supported by nextjs, despite there being a nextjs npx link.
Please advise as this has blocked me from doing anything. Not a great start to the experience and am going to go with a competitor if not resolved quickly.
Thanks
![cord icon logo](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcord-icon.19285d53.png&w=32&q=75)
Hello @ben613187461
I am sorry you are encountering such issue. Cord should work fine with NextJS.
Would you mind sharing what version of NextJS and cord you are using?
![ben613187461](https://s.gravatar.com/avatar/6d33d848e4d1bc60e97c80cd64950964?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fbe.png)
Thanks ludo. Nextjs 12.3.4
![ben613187461](https://s.gravatar.com/avatar/6d33d848e4d1bc60e97c80cd64950964?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fbe.png)
Cord 1.47.0. I just tried to install it for the first time so i believe its latest
![cord icon logo](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcord-icon.19285d53.png&w=32&q=75)
@ben613187461 we are investigating the issue and will get back to you
![cord icon logo](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcord-icon.19285d53.png&w=32&q=75)
@ben613187461 we have identified the issue and are pushing a new version of the package soon
![cord icon logo](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcord-icon.19285d53.png&w=32&q=75)
All set! please update @cord-sdk/react to version 1.47.2. Sorry for the inconvenience and happy to help with the next steps :)
![ben613187461](https://s.gravatar.com/avatar/6d33d848e4d1bc60e97c80cd64950964?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fbe.png)
Thanks that has successfully fixed it!
Great customer support :D