Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when implementing the https://www.npmjs.com/package/agility-ugc package on NextJS site #23

Open
hiebing-tommy opened this issue Jul 24, 2023 · 0 comments

Comments

@hiebing-tommy
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant