Hi there, thanks a lot for your plugin.
Iād like to report an issue I have with it: After installing the package I wanna load the module using const mdItObsidianCallouts = require('markdown-it-obsidian-callouts');
Than Iām getting the following error in the console:
[11ty] 1. Error in your Eleventy config file 'eleventy.config.js'. (via EleventyConfigError)
[11ty] 2. require() of ES Module /ā¦/node_modules/markdown-it-obsidian-callouts/dist/mdit-obsidian-callouts.umd.js from /ā¦/eleventy.config.js not supported.
[11ty] mdit-obsidian-callouts.umd.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
[11ty] Instead rename mdit-obsidian-callouts.umd.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /ā¦/node_modules/markdown-it-obsidian-callouts/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead). (via Error)
[11ty]
[11ty] Original error stack trace: Error [ERR_REQUIRE_ESM]: require() of ES Module /ā¦/node_modules/markdown-it-obsidian-callouts/dist/mdit-obsidian-callouts.umd.js from /ā¦/eleventy.config.js not supported.
[11ty] mdit-obsidian-callouts.umd.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
[11ty] Instead rename mdit-obsidian-callouts.umd.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /ā¦/node_modules/markdown-it-obsidian-callouts/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
[11ty]
[11ty] at Object.<anonymous> (/ā¦/eleventy.config.js:9:30)
[11ty] at requireLocal (/ā¦/node_modules/@11ty/eleventy/src/Util/Require.js:6:10)
[11ty] at TemplateConfig.requireLocalConfigFile (/ā¦/node_modules/@11ty/eleventy/src/TemplateConfig.js:287:23)
[11ty] at TemplateConfig.mergeConfig (/ā¦/node_modules/@11ty/eleventy/src/TemplateConfig.js:334:28)
[11ty] at TemplateConfig.getConfig (/ā¦/node_modules/@11ty/eleventy/src/TemplateConfig.js:159:26)
[11ty] at new Eleventy (/ā¦/node_modules/@11ty/eleventy/src/Eleventy.js:109:39)
[11ty] at Object.<anonymous> (/ā¦/node_modules/@11ty/eleventy/cmd.js:60:16)
error Command failed with exit code 1.
My first level dependencies are:
"dependencies": {
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-img": "^3.1.0",
"@11ty/eleventy-navigation": "^0.3.5",
"@11ty/eleventy-plugin-rss": "^1.2.0",
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"animate.css": "^4.1.1",
"clean-css": "^5.3.2",
"dotenv": "^16.3.1",
"luxon": "^3.4.2",
"markdown-it-eleventy-img": "^0.10.1",
"markdown-it-obsidian-callouts": "^0.2.0",
"markdown-it-wikilinks": "^1.4.0",
"normalize.css": "^8.0.1",
"path": "^0.12.7",
"prismjs": "^1.29.0"
},