bennypowers / rocket-presets

Rocket Presets
MIT License
0 stars 1 forks source link

`EleventyConfigError: Error in your Eleventy config file` with latest @rocket version #6

Open guillemcordoba opened 2 years ago

guillemcordoba commented 2 years ago

This is the error I get when running rocket start:

/home/guillem/projects/holochain/open-dev/profiles/node_modules/@11ty/eleventy/src/TemplateConfig.js:104
        throw new EleventyConfigError(
              ^

EleventyConfigError: Error in your Eleventy config file '/home/guillem/projects/holochain/open-dev/profiles/node_modules/@rocket/cli/src/shared/.eleventy.cjs'.
    at TemplateConfig.mergeConfig (/home/guillem/projects/holochain/open-dev/profiles/node_modules/@11ty/eleventy/src/TemplateConfig.js:104:15)
...

This is my rocket.config.js:

import { codeTabs,  } from 'rocket-preset-code-tabs/';
import { rocketLaunch } from "@rocket/launch";
import replace from "@rollup/plugin-replace";
import commonjs from "@rollup/plugin-commonjs";
import { addPlugin } from "plugins-manager";

/** @type {import('@rocket/cli').RocketCliOptions} */
export default {
  setupDevAndBuildPlugins: [
    addPlugin(replace, {
      "import 'mermaid/dist/mermaid'": "import 'mermaid/dist/mermaid.js'",
      delimiters: ["", ""],
    }),
    addPlugin(commonjs, {
      include: [/node_modules/],
    }),
  ],
  presets: [rocketLaunch(), codeTabs({})],
  devServer: {
    nodeResolve: {
      browser: true,
      preferBuiltins: false,
      mainFields: ["module", "browser", "main"],
    },
  },
};

These are the rocket versions I'm using:

    "@rocket/cli": "^0.10.0",
    "@rocket/launch": "^0.6.0",
    "rocket-preset-code-tabs": "^0.2.10",
bennypowers commented 2 years ago

From that error I'm not sure what the issue is

But to be frank with you, these projects are not likely to receive an update