feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
14.97k stars 742 forks source link

Error: require is not defined when running feathers-create #3394

Closed patamimbre closed 5 months ago

patamimbre commented 5 months ago

Steps to reproduce

Run npm create feathers@latest feathers-chat as described in the docs

It is caused after fixing https://github.com/feathersjs/feathers/issues/3392

Expected behavior

It should create a base project

Actual behavior

It throws Error: require is not defined

System configuration

Module versions (especially the part that's not working): create-feathers@5.0.16

NodeJS version: v21.5.0 (tried with node v20 too)

Operating System: Macos Sonoma 14.2.1

patamimbre commented 5 months ago

@daffl - seems related to https://github.com/feathersjs/feathers/issues/3392

daffl commented 5 months ago

Thanks. I was expecting there to be problems, there's been a lot of pain with ES modules :| Reopening since it looks like it's still not fully working.

daffl commented 5 months ago

This should actually work now in v5.0.18.