./src/index.tsx 1:44
Module parse failed: Unexpected token (1:44)
File was processed with these loaders:
./node_modules/#pmmmwh/react-refresh-webpack-plugin/loader/index.js
./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
$RefreshRuntime$ = require('C:/Users/My PC/Ionic_Project/node_modules/react-refresh/runtime.js');
| $RefreshSetup$(module.id);
|
try this command
npm cache clean -f
Description of how I arrived at the issue: Whilst relatively new to react I have some years experience with Node.js, so I would expect to be able to get a library working.
Installation tripped a couple of times in the catalogue, one of the mtl files referenced a png when the file was a jpg - this was changed and seems successful.
And another file has
import ImageFul from './imageful';
which had to be changed to
import ImageFul from './imageful.jsx';
which I changed but does this mean that I am missing some part of the toolchain?
The main (Github) page does not mention any prerequisites in terms of libraries or loaders (I had to set up and configure babel-plugin-import-glob) what so I am asking myself what other npm dependencies are not installed with react-planner?
Anyway having gone through a painful process, the package finally compiled - but shows nothing and gives this set of errors in the Chrome console:
react_devtools_backend.js:6 [BABEL] Note: The code generator has deoptimised the styling of "http://planner.appl/js/dist/main.js" as it exceeds the max of "500KB".
r # react_devtools_backend.js:6
i # babel.min.js:10
t # babel.min.js:10
t.default # babel.min.js:10
n.generate # babel.min.js:2
n.transform # babel.min.js:2
(anonymous) # babel.min.js:14
n.wrap # babel.min.js:2
e.transform # babel.min.js:14
s # babel.min.js:1
r # babel.min.js:24
i # babel.min.js:24
r # babel.min.js:24
e.src.n..l.content # babel.min.js:24
n.onreadystatechange # babel.min.js:24
XMLHttpRequest.send (async)
s # babel.min.js:24
(anonymous) # babel.min.js:24
o # babel.min.js:24
u # babel.min.js:24
f # babel.min.js:1
(anonymous) # babel.min.js:1
main.js:1 Uncaught TypeError: e.substr is not a function
at $a.load (:1:417556)
at ts.load (:1:418437)
at Module. (:45:1223858)
at n (:1:356)
at :1:1198
at :1:1210
at i (babel.min.js:24)
at r (babel.min.js:24)
at e.src.n..l.content (babel.min.js:24)
at XMLHttpRequest.n.onreadystatechange (babel.min.js:24)
load # main.js:1
load # main.js:1
(anonymous) # main.js:53
n # main.js:1
(anonymous) # main.js:1
(anonymous) # main.js:1
i # babel.min.js:24
r # babel.min.js:24
e.src.n..l.content # babel.min.js:24
n.onreadystatechange # babel.min.js:24
XMLHttpRequest.send (async)
s # babel.min.js:24
(anonymous) # babel.min.js:24
o # babel.min.js:24
u # babel.min.js:24
f # babel.min.js:1
(anonymous) # babel.min.js:1
[object%20Module]:1 GET {application url}[object%20Module] 404 (Not Found)
Any advice gratefully received.
I try to use new internationalization library from facebook - fbt, I follow by steps in doc:
git clone git#github.com:facebookincubator/fbt.git;
cd fbt/demo-app;
yarn install; # pull in dependencies
yarn manifest; # generate fbt enum manifests and source manifests
yarn collect-fbts; # Collect all fbt phrases from source
yarn translate-fbts; # Generate the translation payloads
yarn build;
yarn start; # Checkout your locally running server at localhost:8081
And in next I got next error on yarn build step:
ERROR in ./src/example/Example.react.js
Module not found: Error: Can't resolve 'fbt' in '/home/test/projects/fbt/demo-app/src/example'
# ./src/example/Example.react.js 36:0-80 37:0-4 100:17-31 104:18-29 113:6-23 141:9-12 143:43-46 145:43-46 159:10-27 164:15-29 165:9-12 168:15-29 169:9-12 172:15-29 173:9-12 176:15-29 177:9-12 185:21-24 198:21-24 219:15-29 220:9-12 223:15-29 224:9-12 227:15-29 228:9-12 231:15-29 232:9-12 236:9-12 238:10-13 240:58-61 243:9-12 246:10-13 256:21-24 289:15-26 290:9-12 293:15-26 294:9-12 297:15-26 298:9-12 301:15-26 302:9-12 305:15-26 306:9-12 309:15-26 310:9-12 314:9-12 340:10-13 344:32-35 344:78-81 346:9-12 346:27-30 348:9-12 352:12-15 362:9-12
# ./src/root.js
My apologies! It looks like we were missing a step in our documentation! You'll need to run yarn in the top-level first (to build the runtime library):
git clone git#github.com:facebookincubator/fbt.git;
cd fbt;
yarn;
cd demo-app
yarn ...
Good morning to all, I'm new on BotFrameworkand React and I'm trying to embed my bot to my React website but it is not showing and I can see some errors on Node.js console.
I copied&pasted the sample on my code but now it needs the adaptiveCardsHostConfig and bot attribute, so I tried to add it and it fails.
Please, could you help me to know where I'm wrong?
First of all I executed npm install botframework-webchat command on console and then set the code above:
import { Chat } from 'botframework-webchat';
...
<Chat
adaptiveCardsHostConfig={{ fontFamily: '"Myriad Pro", sans-serif' }}
directLine={{ secret: 'asV4w25M-8I.cwA._-M.o-eAeWrQg0MMJcup3bU8klFEPiKoOhIPV8HZHytS0r0' }}
user={{ id: 'userid', name: 'username' }}
bot={{ id: 'botID', name: 'botName' }}
resize="detect"
/>
...
These are the warnings on node.js console:
WARNING in ./~/adaptivecards/lib/adaptivecards.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/adaptivecards.ts': Error: Can't resolve '../src/adaptivecards.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/botframework-webchat/built/Attachment.js 6:22-46
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Search/Search.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
WARNING in ./~/adaptivecards/lib/enums.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/enums.ts': Error: Can't resolve '../src/enums.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/adaptivecards/lib/adaptivecards.js 7:9-27
# ./~/botframework-webchat/built/Attachment.js
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Search/Search.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
WARNING in ./~/adaptivecards/lib/utils.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/utils.ts': Error: Can't resolve '../src/utils.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/adaptivecards/lib/adaptivecards.js 9:14-32
# ./~/botframework-webchat/built/Attachment.js
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Search/Search.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
WARNING in ./~/adaptivecards/lib/host-config.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/host-config.ts': Error: Can't resolve '../src/host-config.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/adaptivecards/lib/adaptivecards.js 8:9-33
# ./~/botframework-webchat/built/Attachment.js
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Search/Search.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
WARNING in ./~/adaptivecards/lib/text-formatters.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/text-formatters.ts': Error: Can't resolve '../src/text-formatters.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/adaptivecards/lib/card-elements.js 16:21-49
# ./~/adaptivecards/lib/adaptivecards.js
# ./~/botframework-webchat/built/Attachment.js
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Search/Search.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
WARNING in ./~/adaptivecards/lib/card-elements.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/card-elements.ts': Error: Can't resolve '../src/card-elements.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/adaptivecards/lib/adaptivecards.js 6:9-35
# ./~/botframework-webchat/built/Attachment.js
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Home/Home.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
And here the error on Chrome Console:
Uncaught TypeError: action$.ofType(...).map(...).filter(...).throttleTime is not a function
at sendTypingEpic (app.bundle.js:10062)
at app.bundle.js:78455
at Array.map (<anonymous>)
at app.bundle.js:78454
at MapSubscriber.project (app.bundle.js:78520)
at MapSubscriber._next (app.bundle.js:27998)
at MapSubscriber.Subscriber.next (app.bundle.js:3631)
at Subject.next (app.bundle.js:8134)
at app.bundle.js:78530
at app.bundle.js:78646
UPDATE(15/05/2018):
Now DirectLine component renders on page, but it has not proper style and I can't apply a style, just set with and height. It shows like below (with a transparent background, chooser file button and field...):
DirectLine bot showed without proper style
The warnings on Node.js console still appearing and now in Chrome console I can see a new error message:
Uncaught TypeError: Cannot read property 'offsetWidth' of null
at e.componentDidUpdate (botchat.js:34)
at t.notifyAll (botchat.js:34)
at r.close (botchat.js:34)
at r.closeAll (botchat.js:20)
at r.perform (botchat.js:20)
at o.perform (botchat.js:20)
at o.perform (botchat.js:20)
at Object.S [as flushBatchedUpdates] (botchat.js:20)
at r.closeAll (botchat.js:20)
at r.perform (botchat.js:20)
How can I solve the styles and add custom?
It's due to the .map files in the output (in the lib and dist folders). Remove them and you get rid of the webpack warnings.
Also see reported issue here: https://github.com/Microsoft/AdaptiveCards/issues/1492
I created a react project using create-react-app command line.there is 3 container screens in the app.I rendered all and noticed that some css are overriding and got conflicts. I realized that i need to configure webpack and loader in my app. I tried for that,but got a lot of error when i run my app with webpack.
here is my webpack.conf.js
var path = require('path');
var webpack = require('webpack');
module.exports = {
devServer: {
inline: true,
contentBase: './public',
port: 3000
},
devtool: 'cheap-module-eval-source-map',
entry: './src/index.js',
module: {
loaders: [
{
test: /\.js$/,
loaders: ['babel-loader'],
exclude: /node_modules/
},
{
test: /\.scss/,
loader: 'style-loader!css-loader!sass-loader'
}
]
},
output: {
path: 'src',
filename: 'js/bundle.min.js'
},
plugins: [
new webpack.optimize.OccurrenceOrderPlugin()
]
};
and here my package.json
{
"name": "lp",
"version": "0.1.0",
"private": true,
"dependencies": {
"flux": "^3.1.2",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"history": "^4.6.3",
"jquery": "^3.2.1",
"react-bootstrap": "^0.31.0",
"react-fb-like": "^0.4.5",
"react-router": "^3.0.5",
"react-toasts": "^1.0.6",
"react-scripts": "1.0.10",
"redux": "^3.7.2"
},
"scripts": {
"start": "webpack-dev-server --hot --inline",
"react-start": "set PORT=3005 && react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
"devDependencies": {
"babel-core": "^6.17.0",
"babel-loader": "^6.4.1",
"babel-plugin-add-module-exports": "^0.1.2",
"babel-plugin-react-html-attrs": "^2.0.0",
"babel-plugin-transform-class-properties": "^6.3.13",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"file-loader": "^0.11.2",
"image-webpack-loader": "^3.3.1",
"react": "^0.14.6",
"react-dom": "^0.14.6",
"react-hot-loader": "^1.3.1",
"webpack": "^3.3.0",
"webpack-dev-server": "^1.16.5"
},
"description": "This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).",
"main": "index.js",
"author": "",
"license": "ISC"
}
this is the error i got
ERROR in ./src/components/landing_page/assets/img/logo.png
Module parse failed: D:\jasmel\react\lp\src\components\landing_page\assets\img\logo.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/containers/LandingPage.js 39:12-69
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/components/landing_page/assets/css/landing_style.css
Module parse failed: D:\jasmel\react\lp\src\components\landing_page\assets\css\landing_style.css Unexpected character '#' (12:0)
You may need an appropriate loader to handle this file type.
| Owl Carousel v2.2.1
| ********************/
| #import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
| .owl-carousel,
| .owl-carousel .owl-item {
# ./src/containers/LandingPage.js 43:21-87
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/components/landing_page/assets/css/style.css
Module parse failed: D:\jasmel\react\lp\src\components\landing_page\assets\css\style.css Unexpected character '#' (12:0)
You may need an appropriate loader to handle this file type.
| Owl Carousel v2.2.1
| ********************/
| #import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
| .owl-carousel,
| .owl-carousel .owl-item {
# ./src/containers/LandingPage.js 47:13-71
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/components/landing_page/assets/css/custom.css
Module parse failed: D:\jasmel\react\lp\src\components\landing_page\assets\css\custom.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .mainBody {
| font-family: 'sf_ui_displaylight';
| padding: 0px 0px;
# ./src/containers/LandingPage.js 51:14-73
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/css/style.css
Module parse failed: D:\jasmel\react\lp\src\common_assets\css\style.css Unexpected token (39:0)
You may need an appropriate loader to handle this file type.
| sup,
| tt,
| var,
| b,
| u,
# ./src/containers/HomePage.js 23:13-54
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/css/header.css
Module parse failed: D:\jasmel\react\lp\src\common_assets\css\header.css Unexpected token (1:20)
You may need an appropriate loader to handle this file type.
| header .header-main {
| display: block;
| width: 100%;
# ./src/containers/HomePage.js 27:14-56
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/css/status.css
Module parse failed: D:\jasmel\react\lp\src\common_assets\css\status.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .status-main {
| margin-top: 38px;
| }
# ./src/containers/HomePage.js 31:14-56
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/css/post.css
Module parse failed: D:\jasmel\react\lp\src\common_assets\css\post.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .post-main .post-list .col-md-6 {
| width: calc(50% - 10px);
| padding: 0;
# ./src/containers/HomePage.js 35:12-52
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/css/comment.css
Module parse failed: D:\jasmel\react\lp\src\common_assets\css\comment.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .comment-box {
| padding: 20px;
| background-color: #f6f7f9;
# ./src/containers/HomePage.js 39:15-58
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/css/error-pop.css
Module parse failed: D:\jasmel\react\lp\src\common_assets\css\error-pop.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .error-msg-container {
| position: relative;
| background-color: #ffffff;
# ./src/containers/HomePage.js 43:16-61
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/css/share-post.css
Module parse failed: D:\jasmel\react\lp\src\common_assets\css\share-post.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .share-post-container {
| width: 800px;
| margin: 30px auto;
# ./src/containers/HomePage.js 47:17-63
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/css/recomendation-pop.css
Module parse failed: D:\jasmel\react\lp\src\common_assets\css\recomendation-pop.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .recomendation-pop-main {
| width: 765px;
| margin: 30px auto;
# ./src/containers/HomePage.js 51:24-77
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/css/owl.carousel.min.css
Module parse failed: D:\jasmel\react\lp\src\common_assets\css\owl.carousel.min.css Unexpected token (6:0)
You may need an appropriate loader to handle this file type.
| * Licensed under ()
| */
| .owl-carousel, .owl-carousel .owl-item {
| -webkit-tap-highlight-color: transparent;
| position: relative
# ./src/containers/HomePage.js 55:22-74
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/components/home_page/assets/css/custom.css
Module parse failed: D:\jasmel\react\lp\src\components\home_page\assets\css\custom.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .main_body {
| position: relative;
| background-color: #f2f4f8;
# ./src/containers/HomePage.js 59:14-70
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/components/signup_page/assets/img/logo.png
Module parse failed: D:\jasmel\react\lp\src\components\signup_page\assets\img\logo.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/containers/Signup.js 11:12-68
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/components/signup_page/assets/img/icons/signup-left-icon.png
Module parse failed: D:\jasmel\react\lp\src\components\signup_page\assets\img\icons\signup-left-icon.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/containers/Signup.js 15:22-96
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/components/signup_page/assets/css/signup.css
Module parse failed: D:\jasmel\react\lp\src\components\signup_page\assets\css\signup.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .signup-main .signup-left {
| height: 100vh;
| min-height: 650px;
# ./src/containers/Signup.js 21:0-58
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/components/signup_page/assets/css/custom.css
Module parse failed: D:\jasmel\react\lp\src\components\signup_page\assets\css\custom.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .sign-up-content img{
| width: auto !important;
| vertical-align: bottom;
# ./src/containers/Signup.js 23:0-58
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/components/landing_page/assets/img/play-video.png
Module parse failed: D:\jasmel\react\lp\src\components\landing_page\assets\img\play-video.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/components/landing_page/HomeSection_3.js 11:17-55
# ./src/containers/LandingPage.js
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/img/logo.png
Module parse failed: D:\jasmel\react\lp\src\common_assets\img\logo.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/components/home_page/HeaderSection.js 15:12-55
# ./src/containers/HomePage.js
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/img/post-img.png
Module parse failed: D:\jasmel\react\lp\src\common_assets\img\post-img.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/components/home_page/HeaderSection.js 19:15-62
# ./src/containers/HomePage.js
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/img/header-img.png
Module parse failed: D:\jasmel\react\lp\src\common_assets\img\header-img.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/components/home_page/HeaderSection.js 23:17-66
# ./src/containers/HomePage.js
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/img/amazon.png
Module parse failed: D:\jasmel\react\lp\src\common_assets\img\amazon.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/components/home_page/SinglePost.js 23:14-59
# ./src/components/home_page/RightPostSection.js
# ./src/containers/HomePage.js
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/img/IMAGE.png
Module parse failed: D:\jasmel\react\lp\src\common_assets\img\IMAGE.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/components/home_page/SinglePost.js 19:13-57
# ./src/components/home_page/RightPostSection.js
# ./src/containers/HomePage.js
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./src/common_assets/img/advertisment.png
Module parse failed: D:\jasmel\react\lp\src\common_assets\img\advertisment.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/components/home_page/AdPost.js 15:20-71
# ./src/components/home_page/RightPostSection.js
# ./src/containers/HomePage.js
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./node_modules/react-toasts/animate.css
Module parse failed: D:\jasmel\react\lp\node_modules\react-toasts\animate.css Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
| #charset "UTF-8";
|
| .animated {
# ./node_modules/react-toasts/index.js 5:0-23
# ./src/components/landing_page/Header.js
# ./src/containers/LandingPage.js
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
ERROR in ./node_modules/react-toasts/styles.css
Module parse failed: D:\jasmel\react\lp\node_modules\react-toasts\styles.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .react-toasts-container {
| position: absolute;
| z-index: 9999;
# ./node_modules/react-toasts/index.js 6:0-22
# ./src/components/landing_page/Header.js
# ./src/containers/LandingPage.js
# ./src/index.js
# multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/index.js
Anyone here to help me ? Iam new in react. thanks in advance .
I think, You are using webpack 3, but using the config for webpack 1.
Please, take a look here: https://webpack.js.org/guides/migrating/
For example, module -> loaders now is module -> rules, and so on.