Skip to content

Actionhero x Next x ESM #338

@hahnbeelee

Description

@hahnbeelee

Hi Evan!
I'm on a mission to get a next.js app running inside an npm package (which for some reason doesn't work when you do cd node_modules/<package-name> && next dev. After a lot of internet sleuthing I came across a lot of your activity (particularly this issue). Then I eventually ended up looking at grouparoo. Congrats on the acquisition btw! This is a very long-winded intro, for me to ask:

I'm trying to get my next app to run with actionhero. However, my next.js app needs to be in ESM format (much of its dependencies require ESM). When i try following the steps outlined in this readme I get this error:
image

But, when I run npm run dev within my client folder it works fine. I'm curious if actionhero/ah-next-plugin would support esm modules? I'm not sure how everything is working together (whether my next app shouldn't be affected my actionhero etc.) so would love if you could just shine some light on the situation. Thank you!

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