I am needing to get and update User Generated Content from my AgilityCMS instance. I want to use the https://www.npmjs.com/package/agility-ugc package because it is only working system to make the request I need but when I import the package into a component I get the following error:
Server Error
SyntaxError: Cannot use import statement outside a module
This error happened while generating the page. Any console logs will be displayed in the terminal window.
on the line: import Agility from 'agility'
Is the a way to get the agility-ugc package updated or can a similar package be created that is compatible with NextJS?
I am needing to get and update User Generated Content from my AgilityCMS instance. I want to use the https://www.npmjs.com/package/agility-ugc package because it is only working system to make the request I need but when I import the package into a component I get the following error:
Server Error
SyntaxError: Cannot use import statement outside a module
This error happened while generating the page. Any console logs will be displayed in the terminal window.
on the line: import Agility from 'agility'
Is the a way to get the agility-ugc package updated or can a similar package be created that is compatible with NextJS?