Comments (7)
Thanks for your reply!
I think i figured it out. The thing is that the node_modules folder is in a sibling dir of the scripts folder, and it does not get detected.
When i added:
resolve: {
root: [
path.join(__dirname, "..", "gulp", "node_modules"),
path.join(__dirname, "..", "scripts", "modules"),
],
extensions: ['', '.js', '.json']
},
to the webpack.config.js it seems to be working now.
Thanks again for putting me on the right path!
from babel-loader.
Webpack already searches in each node_modules
folder. It'll check to see if the current directory the file is in has the module available in node_modules
and if not it goes up the a directory and checks there again. It sounds like you just don't have 6to5-runtime
installed?
from babel-loader.
@janusch Ah, no problem! Sorry I couldn't have been more help!
from babel-loader.
@janusch @sebmck I had the same problem. 'node_modules' folder is in a sibling dir which is far different folder.
I set root
path but still did not work. Do you have any idea about this?
from babel-loader.
Works after set resolveLoader. modulesDirectories
webpack/webpack#1083
from babel-loader.
๐ :)
from babel-loader.
I've had the same issue and solved it by simply creating a symlink to the correct directory in the directory my webpack.config.js
is.
from babel-loader.
Related Issues (20)
- [Bug]: TypeError: this.getOptions is not a function + SPFx HOT 8
- @babel/plugin-transform-optional-chaining๏ผ configuration does not take effect HOT 1
- BunnyJs
- `module.exports` is returned instead of `module.exports.default` when importing from node_modules HOT 1
- Plugin transform-runtime generates incorrect commonjs wrapper HOT 2
- Issue while creating build for React JS Application HOT 6
- unknow option .default HOT 5
- Adding ES6 `import("find-cache-dir");` should be a breaking change. HOT 7
- You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | HOT 1
- [Bug]: HOT 2
- export default is not a function
- Refresh time is too slow in expo react-native project after upgrade HOT 14
- Babel-loader Cache - unable to cache in changing directory environment HOT 3
- After upgrade my nodejs version 16.8.0 to 16.9.0, I am getting this error "You may need an additional loader to handle the result of these loaders" HOT 1
- Bug Error Run npm ci npm ERR! Cannot read property '@babel/cli' of undefined npm ERR! HOT 1
- Feature request: Different browserslistEnv based on webpack target. HOT 1
- You may need additional loaders
- semver vulnerable to Regular Expression Denial of Service HOT 3
- Bump semver dependency to >= 7.5.2 HOT 1
- Vulnerable dependencies (indirect security issues) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-loader.