You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to import const pluginToc = require('@patternfly/pfe-tools/11ty/plugins/table-of-contents.cjs');
into the .eleventy.js config file with node v15.10 one would get a similar issue to the one below
[email protected] watch
npx @11ty/eleventy --watch
[11ty] Eleventy CLI Fatal Error: (more in DEBUG output)
[11ty] 1. Error in your Eleventy config file '/Users/tony/Dev/misc/11ty-base-blog-toc/.eleventy.js'. You may need to run `npm install`. (via EleventyConfigError)
[11ty] 2. Cannot find module '/Users/tony/Dev/misc/11ty-base-blog-toc/node_modules/@patternfly/pfe-tools/11ty/plugins/table-of-contents.cjs.js' (via Error)
[11ty]
[11ty] Original error stack trace: Error: Cannot find module '/Users/tony/Dev/misc/11ty-base-blog-toc/node_modules/@patternfly/pfe-tools/11ty/plugins/table-of-contents.cjs.js'
Description of the issue
When trying to import
const pluginToc = require('@patternfly/pfe-tools/11ty/plugins/table-of-contents.cjs');
into the
.eleventy.js
config file with nodev15.10
one would get a similar issue to the one belowImpacted component(s)
@patternfly/pfe-tools/11ty/plugins/table-of-contents.cjs
Steps to reproduce
npm i
in a terminalnpm run watch
in a terminalExpected behavior
Being able to import the plugin w/o issues
The text was updated successfully, but these errors were encountered: