score:0
nailed it:
module: {
loaders: [
{test: /\.js$/, include: path.join(__dirname, 'src'), loaders: ['babel']},
{test: /(\.css)$/, loaders: ['style', 'css']},
{test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file'},
{test: /\.(woff|woff2)$/, loader: 'url?prefix=font/&limit=5000'},
{test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=100000&mimetype=application/octet-stream'},
{test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=100000&mimetype=image/svg+xml'},
{test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&minetype=application/font-woff" },
{test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" }
]
}
};
that first line i do path.join(__dirname, 'src')
needed to do path.join(__dirname, 'web')
Source: stackoverflow.com
Related Query
- Webpack Unexpected token (React) may need loader - already has one
- React / Webpack - "Module parse failed: Unexpected token - You may need an appropriate loader to handle this file type."
- React - Module parse failed: Unexpected Token. You may need an appropriate loader to handle this file type
- Module parse failed: Unexpected token (7:5) You may need an appropriate loader to handle this file type
- ERROR in ./src/index.js 14:4 Module parse failed: Unexpected token (14:4) You may need an appropriate loader to handle this file type
- Webpack 2 : You may need an appropriate loader to handle this file type React
- Error when attempting to import JSON into a React component: "You may need an appropriate loader", but the correct loader is already installed
- Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type. <!DOCTYPE html>
- Module parse failed: Unexpected token (41:41) You may need an appropriate loader to handle this file type
- React webpack error: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file
- React Failed to compile error: Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type
- React with NextJS and Next-CSS: You may need an appropriate loader to handle this file type
- Webpack with react modules giving unexpected token
- Webpack module build failed unexpected token (rails react build)
- React Unexpected token < - babel loader
- webpack 4 react unexpected token ...(spread operator)
- React & Babel: You may need an additional loader to handle the results of these loaders
- Module parse failed: Unexpected character '�' (1:0) You may need an appropriate loader to handle this file type
- Babel Webpack Error: You may need an appropriate loader to handle this file type
- Webpack and React -- Unexpected token
- Unexpected token with Webpack and React
- Simple Webpack + React + ES6 + babel example doesn't work. Unexpected token error
- Webpack Hot module replacement, react 18 ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before
- Module parse failed: Unexpected character '@'You may need an appropriate loader to handle this file type.(Webpack : 4.4.0)
- Webpack React error: Module parse failed: Unexpected token
- Webpack - You may need an appropriate loader
- React Nextjs: Module parse failed:You may need an appropriate loader to handle this file type,currently no loaders are configured to process this file
- Webpack ERROR - You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file
- eslint loader (for webpack 2) - You may need an appropriate loader to handle this file type
- webpack4: React babel - You may need an appropriate loader to handle this file type
More Query from same tag
- ReactJS: Show or hide element works only on first button click
- Redux state shape for managing multiple React component instances?
- Clearing url search params upon unmount
- Button is not getting enabled on text input in React?
- "GSAP target not found" in react.js and animation happens on its own on hot reload
- How to fix this bug ? Unexpected SyntaxError: Unexpected token '!'
- How to render an element (React Class) an arbitrary number of times?
- Show a loading page when data is fetching - React Redux
- Rendering multiple conditions ternary operator in React
- Attempting to map through an array of data and push items to different arrays
- react toggle and close when clicked at other element/body failed
- Server cannot serve static files
- How to call a function in a function in React (auth, routing)
- React-Table useTable is not defined (no Node.js)
- how to disable event select in react big calender
- remove option from second select if already selected in reactjs
- Converting JavaScript React Component into TypeScript
- Next JS Use query parameter as variable in rewrite
- I am trying to implement a way to delete swappable items, but my delete method removes all the items instead of just the one that is clicked
- Why does using an arrow function give the updated version of the state in React in comparison to calling the function normally?
- how to get data API from mongoose to redux?
- React Native rnpm unlink library
- Couldn't find a `pages` directory. Please create one under the project root
- Bootstrap's toggle button group not calling onChange event in react
- Correct way to get Scroll Position
- Async function doesn't return in React app
- Getting rid off html elements - React
- add object to initial state in reducer
- Correct type declaration for mapStateToProps of Redux connect (TypeScript 2)
- How to border bottom the div content on click