Import BrowserRouter as Router, Switch, Route
DBids35 opened this issue · 4 comments
In lesson 17, I got an error that "Switch" is not defined when I imported as shown in the tutorial. Once I imported using "Import BrowserRouter as Router, Switch, Route" things worked as intended
in lesson 6, I got an error
`
Failed to compile.
Error in Error: Child compilation failed:
Module build failed: SyntaxError: Unexpected token <
-
Function
-
lodash.js:14843
[30-days-of-react]/[lodash]/lodash.js:14843:16 -
lodash.js:494 apply
[30-days-of-react]/[lodash]/lodash.js:494:27 -
lodash.js:15227
[30-days-of-react]/[lodash]/lodash.js:15227:16 -
lodash.js:496 apply
[30-days-of-react]/[lodash]/lodash.js:496:27 -
lodash.js:6600
[30-days-of-react]/[lodash]/lodash.js:6600:16 -
lodash.js:14842 Function.template
[30-days-of-react]/[lodash]/lodash.js:14842:20 -
SyntaxError: Unexpected token <
-
Function
-
lodash.js:14843
[30-days-of-react]/[lodash]/lodash.js:14843:16 -
lodash.js:494 apply
[30-days-of-react]/[lodash]/lodash.js:494:27 -
lodash.js:15227
[30-days-of-react]/[lodash]/lodash.js:15227:16 -
lodash.js:496 apply
[30-days-of-react]/[lodash]/lodash.js:496:27 -
lodash.js:6600
[30-days-of-react]/[lodash]/lodash.js:6600:16 -
lodash.js:14842 Function.template
[30-days-of-react]/[lodash]/lodash.js:14842:20 -
compiler.js:76
[30-days-of-react]/[html-webpack-plugin]/lib/compiler.js:76:16 -
Compiler.js:214 Compiler.
[30-days-of-react]/[webpack]/lib/Compiler.js:214:10 -
Compiler.js:403
[30-days-of-react]/[webpack]/lib/Compiler.js:403:12 -
Tapable.js:67 Compiler.next
[30-days-of-react]/[tapable]/lib/Tapable.js:67:11 -
CachePlugin.js:40 Compiler.
[30-days-of-react]/[webpack]/lib/CachePlugin.js:40:4 -
Tapable.js:71 Compiler.applyPluginsAsync
[30-days-of-react]/[tapable]/lib/Tapable.js:71:13 -
Compiler.js:400 Compiler.
[30-days-of-react]/[webpack]/lib/Compiler.js:400:9 -
Compilation.js:577 Compilation.
[30-days-of-react]/[webpack]/lib/Compilation.js:577:13 -
Tapable.js:60 Compilation.applyPluginsAsync
[30-days-of-react]/[tapable]/lib/Tapable.js:60:69 -
Compilation.js:572 Compilation.
[30-days-of-react]/[webpack]/lib/Compilation.js:572:10 -
Tapable.js:60 Compilation.applyPluginsAsync
[30-days-of-react]/[tapable]/lib/Tapable.js:60:69 -
Compilation.js:567 Compilation.
[30-days-of-react]/[webpack]/lib/Compilation.js:567:9 -
Tapable.js:60 Compilation.applyPluginsAsync
[30-days-of-react]/[tapable]/lib/Tapable.js:60:69 -
Compilation.js:563 Compilation.
[30-days-of-react]/[webpack]/lib/Compilation.js:563:8 -
Tapable.js:60 Compilation.applyPluginsAsync
[30-days-of-react]/[tapable]/lib/Tapable.js:60:69 -
Compilation.js:525 Compilation.seal
[30-days-of-react]/[webpack]/lib/Compilation.js:525:7
`
@DBids35 and @Skhoshhal Have you been able to resolve your individual issues?
The problem is NOT resolved for me even I cloned it new but nothing is changed.
Issue has been resolved