static-site-scaffold-modules icon indicating copy to clipboard operation
static-site-scaffold-modules copied to clipboard

vite posthtml doesn't work

Open aminya opened this issue 3 years ago • 1 comments

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\[email protected]\node_modules\vite-plugin-posthtml\index.js:32:12)
    at file:///C:/test/astro.config.mjs:19:7 {
  code: 'ERR_INVALID_ARG_VALUE'
}

aminya avatar Jul 02 '22 00:07 aminya

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

rossPatton avatar Aug 30 '22 18:08 rossPatton