tscanlin / tocbot

Build a table of contents from headings in an HTML document.
MIT License
1.37k stars 114 forks source link

Structure changed and now index.js references non-existent src dir #341

Closed jcniedfeldt2 closed 2 months ago

jcniedfeldt2 commented 2 months ago

4.27.7 removed the src directory which causes the following error when trying to run Storybook on a new install:

✘ [ERROR] Could not resolve "./src/js/index-esm.js"

    node_modules/.pnpm/tocbot@4.27.7/node_modules/tocbot/index.js:1:39:
      1 │ import { destroy, init, refresh } from './src/js/index-esm.js'

Edit: The files in question can be seen here and the src/ folder referenced in index.js is indeed not present.

jcniedfeldt2 commented 2 months ago

Thank you for the quick updates. 4.27.12 does not produce the issue and Storybook is able to start.

tscanlin commented 2 months ago

Awesome, yep! Just got that version out (tocbot@4.27.12) you are quick!

Thanks for picking it up so fast, verifying, and resolving this. Really appreciate it @jcniedfeldt2 👍