GithubHelp home page GithubHelp logo

Comments (7)

janusch avatar janusch commented on July 16, 2024 1

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.

sebmck avatar sebmck commented on July 16, 2024

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.

sebmck avatar sebmck commented on July 16, 2024

@janusch Ah, no problem! Sorry I couldn't have been more help!

from babel-loader.

camsong avatar camsong commented on July 16, 2024

@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.

camsong avatar camsong commented on July 16, 2024

Works after set resolveLoader. modulesDirectories
webpack/webpack#1083

from babel-loader.

Couto avatar Couto commented on July 16, 2024

๐Ÿ‘ :)

from babel-loader.

EdDeAlmeidaJr avatar EdDeAlmeidaJr commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.