chromeos / static-site-scaffold-modules

Modules supporting the Static Site Scaffold
Apache License 2.0
59 stars 21 forks source link

vite posthtml doesn't work #103

Open aminya opened 2 years ago

aminya commented 2 years ago

It gives the following error:

node:internal/errors:465
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_VALUE]: The property 'options.entryTypes' options.entryTypes can not set with options.type together. Received [ 'measure' ]     
    at new NodeError (node:internal/errors:372:5)
    at PerformanceObserver.observe (node:internal/perf/observe:217:13)
    at posthtmlPlugin (.\node_modules\.pnpm\vite-plugin-posthtml@0.0.3\node_modules\vite-plugin-posthtml\index.js:32:12)
    at file:///C:/test/astro.config.mjs:19:7 {
  code: 'ERR_INVALID_ARG_VALUE'
}
rossPatton commented 2 years ago

Yeah honestly I wish they would update the docs or provide examples on how to use it. I'm trying to migrate a project and figuring out how the config object needs to be setup is quite frustrating