Skip to content

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

@hiebing-tommy

Description

@hiebing-tommy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions