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
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.
The text was updated successfully, but these errors were encountered:
I was also unable to use version 0.7.16 due to this issue. 0.7.15 works.
With 0.7.16, attempts to import Typewriter's modules (in a typical Svelte + Typescript project) resulted in an error along the lines of "exports is not defined".
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.The text was updated successfully, but these errors were encountered: