
- 현상 : moudle parse error: unexpected tocken you may need an appropriate loader to handle this file type
- 원인 : webpack 에서 'vue3-chart-v2' 를 사용하려는데 'Basechart.js' 의 loader가 잘못되었다고함
호환성 문제인데... BaseChart.js 의 loader를 babel-loader로 설정해주면 된다.
- 해결 :
vue.config.js 편집 (상황에따라서 babel.config/webpack.config 와 같이 알맞은 config 파일을 편집하면 될 듯)
"rules" 에 아래 소스 추가
module: {
rules: [{
test: /@?(BaseChart).*\.(ts|js)x?$/,
loader: 'babel-loader'
}]
}
참고:
github.com/akveo/react-native-ui-kitten/issues/991
Failed to compile in react native web app instance using EvaIconsPack · Issue #991 · akveo/react-native-ui-kitten
🐛 Bug Report My app was build from TS template using installation guide in the docs. npx react-native init MyApp --template @ui-kitten/template-ts My app does not use expo. My app has single screen...
github.com