tatethurston / nextjs-routes

Type safe routing for Next.js
MIT License
557 stars 21 forks source link

TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module needs an import assertion of type "json" #115

Closed ckt1031 closed 1 year ago

ckt1031 commented 1 year ago

Error Occurred: image

To Reproduce this problem:

  1. Use Module as project type

    "type": "module"
  2. Run dev

tatethurston commented 1 year ago

Thanks for reporting @cktsun1031. I'm publishing v1.0.7 now to resolve this.

I've updated one of the examples to use "type": "module" to prevent this class of error in the future.