Unknown «dev» option. Please use «compilerOptions» for any Svelte compiler configuration.

Admin Svelte Errors

Ошибка возникает в rollup-plugin-svelte.

Ошибки такого плана:

svelte({
// enable run-time checks when not in production
dev: !production,
// we’ll extract any component CSS out into
// a separate file — better for performance
css: css => {
css.write(‘public/build/bundle.css’, false);
}
}),
[rollup-plugin-svelte] Unknown «dev» option. Please use «compilerOptions» for any Svelte compiler configuration.
[rollup-plugin-svelte] Unknown «css» option. Please use «compilerOptions» for any Svelte compiler configuration.

Для решения откатываемся обратно:

7.x.x -> 6.x.x

Или полностью пересобираем по обновленным докам конфигурацию в файле rollup.config.js с обновлением всех зависимостей в package.json.

У сайта нет цели самоокупаться, поэтому на сайте нет рекламы. Но если вам пригодилась информация, можете лайкнуть страницу, оставить комментарий или отправить мне подарок на чашечку кофе.

Добавить комментарий

Write your comment if you have something on the topic of the current article:
"Unknown «dev» option. Please use «compilerOptions» for any Svelte compiler configuration."