fix: module @codemirror/state does not provide an export named Extension #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
found this error when copy-pasting from https://github.com/codemirror/basic-setup
fixed by removing the
Extensionimport in my coderelevant code
github.com/codemirror/state@8725a90b18/src/index.ts (L3)github.com/codemirror/state@8725a90b18/src/facet.ts (L343)as far as i can tell,
Extensionis only a typeThat's correct. But TypeScript code can import types. So what is the problem here?
copy-pasting from typescript to javascript
the
import typesyntax would show that this is "typescript only"but its more verbose ...
That's not generally something that works, and is not a use case this code tries to address.
Pull request closed