unused expression, expected an assignment or function call
Solution
modify the mount statement of Vue in main.ts
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
}).$mount()
Add $mount() to solve this problem
Read More:
- Angular6 rxjs start error in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ‘;’ expected.
- Keil5 error: #29: expected an expression [Solved]
- How to Solve Keil Error: error: #29: expected an expression
- [Solved] .\main.go:3:6: missing function body .\main.go:4:1: syntax error: unexpected semicolon or newline be
- [Solved] Vue Error: Failed to mount component: template or render function not defined
- [Solved] TS Error: Could not find a declaration file for module
- [Solved] Typescript installation TS node execution error
- How to Solve Vscode terminal error (ts -v)
- [Solved] error TS2584: Cannot find name ‘console’. Do you need to change your target library? Try changing the ‘lib’ compiler option to include ‘dom’.
- How to Fix msgsend() error: to many arguments to function call, expected 0, have2
- Solve the data transfer between vue irrelevant components error: this.$store.commit is not a function
- [Solved] Tensorflow2.0 Error: Function call stack:distributed_function
- [Solved] thymeleaf.TemplateEngineException processing template “main“: An error happened during template pars
- [Solved] QT Programme Error: error: no matching function for call to…
- error: expected ‘;‘ at end of member declaration and expected ‘)‘ before ‘&‘ toke Errors
- Qt error: no matching function for call to ‘MainWindow::connect(QAction*&, void (QAction::*)
- [Solved] mmdetection yolox Error: find_unused_parameters
- C++ BUG: [Error] invalid array assignment
- css-rcurlyexpected Error: css-rcurlyexpected at-rule, or selector expected, Do not use empty rulesets
- [Solved] igb Compile Error: igb_main.c:10044:7: error: implicit declaration of function ‘isdigit’