JSX 語(yǔ)法錯(cuò)誤如何解決
ERROR in ./src/todo/footer.jsx
Module build failed: SyntaxError: D:/Documents/Projects/future/fount-end/vue-exmaples/vue-webpack-demo-02/src/todo/footer.jsx: Unexpected token (9:6)
? ?7 |? ?render() {
? ?8 |? ? ?return (
>? 9 |? ? ? ?<div></div>
? ? ?|? ? ? ?^
? 10 |? ? ?);
? 11 |? ?}
? 12 | }
2019-09-23
.babelrc文件名正確嗎,插件在這個(gè)文件中配置了嗎
2018-02-25
檢查babel和jsx相關(guān)的幾個(gè)包是否正確安裝,
檢查.babelrc的文件是否存在?(請(qǐng)確認(rèn)文件名是.babelrc)
檢查里面的配置是否和老師的一樣。
2018-01-31
export default{
? ?render(){
? ? ? ?return (
? ? ? ? ? ?<div id="footer">
? ? ? ? ? ? ? ?<span>Writeen by you</span>
? ? ? ? ? ?</div>
? ? ? ?)
? ?}
}