Giter Site home page Giter Site logo

markdown-it-obsidian-callouts's Introduction

markdown-it-obsidian-callouts's People

Contributors

dependabot[bot] avatar ebullient avatar github-actions[bot] avatar lucible avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lucible

markdown-it-obsidian-callouts's Issues

mdit-obsidian-callouts.umd.js is treated as an ES module file as it is a .js file ā€¦

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"
  },

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.