Created
November 1, 2019 13:50
-
-
Save hesselbom/06c608ffc48728ac6d6dcee5ffbee4ea to your computer and use it in GitHub Desktop.
"Error: Layout failed to converge" when adding newlines and starting doc is empty string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"start": "webpack-dev-server" | |
}, | |
"dependencies": { | |
"@codemirror/next": "^0.2.0" | |
}, | |
"devDependencies": { | |
"html-webpack-plugin": "^3.2.0", | |
"webpack": "^4.41.2", | |
"webpack-cli": "^3.3.10", | |
"webpack-dev-server": "^3.9.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { EditorView } from '@codemirror/next/view' | |
import { EditorState } from '@codemirror/next/state' | |
const state = EditorState.create({ doc: '' }) | |
const view = new EditorView({ state }) | |
document.body.appendChild(view.dom) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const HtmlWebpackPlugin = require('html-webpack-plugin') | |
module.exports = { | |
plugins: [new HtmlWebpackPlugin()] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment