I am in the process of updating typewriter to 0.7.16 in my project. With the switch to using a commonjs output, webpack cannot import from sub-directories (e.g. import { h } from 'typewriter-editor/lib/rendering/vdom').
I was able to fix this by removing "type": "module" in package.json. Looks like typewriter needs to be a commonjs module through-and-through or the js files it produces need to be .cjs.
I am in the process of updating typewriter to 0.7.16 in my project. With the switch to using a commonjs output, webpack cannot import from sub-directories (e.g.
import { h } from 'typewriter-editor/lib/rendering/vdom').I was able to fix this by removing
"type": "module"inpackage.json. Looks like typewriter needs to be a commonjs module through-and-through or the js files it produces need to be .cjs.