Took the latest via Git Clone
@marijn I’m unable to run the Demo.
Tried to setup the Typescript version of prose mirror.
Some how the package.json missed out the demo script, I have added the following
"scripts": {
"test": "bin/pm test",
"demo": "esmoduleserve demo/ --port 8080"
},
After the npm run demo
command, Got the following exception:
Uncaught TypeError: Failed to resolve module specifier "prosemirror-model".
Relative references must start with either "/", "./", or "../".
Also I see many error after taking the source code latest version. During bin/pm build
command execution
Found 42 errors. Watching for file changes.
'prosemirror-model' is imported by commands/src/commands.d.ts,
but could not be resolved – treating it as an external dependency
Another error:
inputrules/src/inputrules.ts(70,7): error TS2322: Type 'Plugin<null>' is not assignable to type 'Plugin<{ transform: Transaction; from: number; to: number; text: string; } | null>'.
The types of 'spec.state' are incompatible between these types.
Request you to suggest.