I am using [email protected] with the app directory. I want to use this package to create a PWA: @ducanh2912/next-pwa.
However, when I add a manifest.json file to my app directory, I get this error:
Module parse failed: Unexpected token "i" (0x69) in JSON at position 0 while parsing near "import fs from 'fs'\n..."
JSONParseError: Unexpected token "i" (0x69) in JSON at position 0 while parsing near "import fs from 'fs'\n..."```
Am I not supposed to store the manifest.json file in the app directory? Or is this a bug in nextjs?
I tested it with a fresh create-next-app project with these settings, and had the same result.
- Typescript: No
- Eslint: yes
- Tailwind: no
- src/ dir: yes
- app/ dir: yes