error Compile error: Failed to compile, check the errors for troubleshooting. File: ./node_modules/element-ui/packages/scrollbar/src/main.js × Module parse failed: ╰─▶ × JavaScript parsing error: Expected ‘,’, got ‘ref’ ╭─[64:1] 64 │ const wrap = ( 65 │ <div 66 │ ref=”wrap” · ─── 67 │ style={ style } 68 │ onScroll={ this.handleScroll } ╰──── help: You may need an appropriate loader to handle this file type.
Follow is my configuration file.
export default defineConfig({ plugins: [ pluginVue2(), pluginVue2Jsx({ vueJsxOptions: { injectH: false, }, }), pluginBabel({ include: /.(?:jsx|tsx)$/, exclude: /[\/]node_modules[\/]/, }), pluginStylus(), ], source: { include: [{ not: /[\/]node_modules[\/]/ }], entry: { index: './src/main.js', }, alias: { '@': './src', assets: './src/assets', '@/*': './src/*', }, }, })
cknight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.