create-vite-pwa icon indicating copy to clipboard operation
create-vite-pwa copied to clipboard

Manifest not being found on first build

Open hiteacheryouare opened this issue 3 years ago • 0 comments

I just used this to scaffold out a basic project, and made no changes to it. I ran npm install and then npm run build, and it threw this error

failed to load config from ./vite.config.js
error during build:
TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file://[LOCAL-PATH-TO-REPO]/manifest.json" needs an import assertion of type "json"
    at new NodeError (node:internal/errors:372:5)
    at validateAssertions (node:internal/modules/esm/assert:82:15)
    at defaultLoad (node:internal/modules/esm/load:24:3)
    at ESMLoader.load (node:internal/modules/esm/loader:431:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:350:22)
    at new ModuleJob (node:internal/modules/esm/module_job:66:26)
    at #createModuleJob (node:internal/modules/esm/loader:369:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:328:34)
    at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:82:21)
    at async Promise.all (index 2)

Using PowerShell in VSCode on Windows 11, and node 18.

hiteacheryouare avatar May 09 '22 16:05 hiteacheryouare