Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    jackiealex
    @jackiealex
    any one use enhanced-resolver?
    Neethu K P
    @kp_neethu_twitter
    Hi every one
    I am new to webpack and have some issue when i try to run the project using webpack
    i am getting the following error
           Asset    Size  Chunks                    Chunk Names

    ./dist/bundle.js 914 kB 0 [emitted] [big] test-suite
    [2] ./~/process/browser.js 2.52 kB {0} [built]
    [11] ./~/selenium-webdriver/lib/command.js 4.48 kB {0} [built]
    [12] ./~/selenium-webdriver/lib/webdriver.js 26 kB {0} [built]
    [15] ./~/selenium-webdriver/lib/capabilities.js 5.82 kB {0} [built]
    [18] ./~/selenium-webdriver/lib/error.js 12.1 kB {0} [built]
    [19] ./~/selenium-webdriver/lib/logging.js 6.31 kB {0} [built]
    [22] ./~/selenium-webdriver/remote/index.js 6.23 kB {0} [built]
    [60] ./~/selenium-webdriver/lib/by.js 2.85 kB {0} [built]
    [61] ./~/selenium-webdriver/lib/input.js 1.67 kB {0} [built]
    [164] ./src/TestHelper.js 880 bytes {0} [built]
    [165] ./src/WebDriverProvider.js 1.49 kB {0} [built]
    [166] ./index.js 133 bytes {0} [built]
    [358] ./~/selenium-webdriver/chrome.js 7.79 kB {0} [built]
    [359] ./~/selenium-webdriver/edge.js 3.99 kB {0} [built]
    [364] ./~/selenium-webdriver/index.js 9.41 kB {0} [built]

    + 390 hidden modules

    ERROR in ./src/WebDriverProvider.js
    Module not found: Error: Can't resolve './config/defaultConfig' in 'C:\RemindersVR\fusion-test-suite\src'
    @ ./src/WebDriverProvider.js 1:406-449
    @ ./index.js

    ERROR in ./src/TestHelper.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\src'
    @ ./src/TestHelper.js 1:746-759
    @ ./index.js

    ERROR in ./~/selenium-webdriver/chrome.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver'
    @ ./~/selenium-webdriver/chrome.js 1:1154-1167
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/edge.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver'
    @ ./~/selenium-webdriver/edge.js 1:899-912
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/ie.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver'
    @ ./~/selenium-webdriver/ie.js 1:899-912
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/opera.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver'
    @ ./~/selenium-webdriver/opera.js 1:899-912
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/phantomjs.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver'
    @ ./~/selenium-webdriver/phantomjs.js 1:899-912
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/remote/index.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver\remote'
    @ ./~/selenium-webdriver/remote/index.js 1:925-938
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/net/portprober.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver\net'
    @ ./~/selenium-webdriver/net/portprober.js 1:55-68
    @ ./~/selenium-webdriver/chrome.js
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/net/portprober.js
    Module not found: Error: Can't resolve 'child_process' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver\net'
    @ ./~/selenium-webdriver/net/portprober.js 1:22-46
    @ ./~/selenium-webdriver/chrome.js
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/net/portprober.js
    Module not found: Error: Can't resolve 'net' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver\net'
    @ ./~/selenium-webdriver/net/portprober.js 1:73-87
    @ ./~/selenium-webdriver/chrome.js
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriv

    "use strict"

    const webpack = require("webpack");
    const path = require("path");

    const webpackConfig = {
    entry: {
    "test-suite": "./index.js"
    },
    output: {
    path: path.join(__dirname, "../"),
    filename: "./dist/bundle.js"
    },
    module: {
    rules: [
    {
    test: /.(js|jsx)$/,
    use: [{
    loader: "babel-loader",
    options: {
    presets: [
    ["es2015", {"modules": false}],
    ["babili"]
    ]
    }
    }]
    }
    ]
    }
    };

    module.exports = webpackConfig;

    this is my config file
    can any one help me resolve this issue ?
    Tejas Bubane
    @tejasbubane
    @kp_neethu_twitter webpack is not able to find those modules/files like ./config/defaultConfig, fs etc. Check for import/require in the source code at those error locations.
    Neethu K P
    @kp_neethu_twitter
    Need a immediate help with webpack
    blob
    this is my config file
    added dependency
    blob
    getting the following error
    ERROR in ./index.js
    Module build failed: Error: Couldn't find preset "es2015" relative to directory
    Neethu K P
    @kp_neethu_twitter
    blob
    included the babel.rc file with above configuration
    Tejas Bubane
    @tejasbubane
    @kp_neethu_twitter I think this room is for discussing webpack features, for questions better use stackoverflow: http://stackoverflow.com/tags/webpack
    Neethu K P
    @kp_neethu_twitter
    sure tejas
    Brewster
    @2livebrew
    Is webpack-dev-server meant to inject express-related code into the front-end? I upgraded from webpack 1.13.1 to 2.4.1 5 days ago, and I get a front-end error including "Server.js" with a line var express = require("express");. I can't imagine this is something that's supposed to make it into the bundle, is it?
    Brewster
    @2livebrew
    Not sure this matters because I doubt wds is meant to be bundled, but here's a stacktrace: https://gist.github.com/2livebrew/b2ec9e177a741fefee101530296319a1
    Alex Regan
    @alexsasharegan
    image.png
    has anyone here started using the ModuleConcatenationPlugin? I'm building a Vuejs app with webpack, and I recently upgraded to webpack v3. All was smooth, but when I flipped on the ModuleConcatenationPlugin, one of my SPA's bundles lost it's ordering, and while it bundled successfully, threw the runtime error above
    tamarapallik
    @tamarapallik
    Hi
    I have a problem while building multiple modules as it takes so much time for building the entire project
    While bundling the project i have 3 modules in it and i need to seperate the core modules from bundling every time and also is there any option of bundling independent modules on demand? Thanks
    Andrei Bazavan
    @rokyed
    Hi guys and girls, if someone knows where the aliases are processed for the require please let me know, if not I have a feature request from you (else i would have implemented it myself), I want the aliases to be able to take an array and if requested file from alias is not present there then it should fallback to the next item in the array and so on.
    Thanks :)
    Héctor León
    @HectorLS
    Hi everybody!, some can tell me if there is a way to setup Webpack to ensure that the generated CSS file is loaded before JS, thanks in advance.
    Charlie Choiniere
    @nek4life
    Question about tree shaking. If I use the import syntax on a file that just returns a map from a java properties file can I use destructuring to only include the messages that are being imported via destructuring?
    vu minh chien
    @adambet3
    yes
    Vilva Athiban P B
    @vilvaathibanpb
    @vilvaathibanpb
    Hello,
    I have babelrc, babel presets in place and I tried migrating to webpack 4 recently which on minification of build (using uglify plugin) gives a set of junk values in the minified files
    any thought on this?
    Isac
    @isacjunior
    Hi guys! Someone are using the new feature webpackPrefetch in webpack 4.6? Actually, I use react-loadable. Someone can say if loadable use prefetch or preload concept ?
    Jasdeep Singh
    @jasdeep92
    https://thechosenones.wooplr.com/collection/4580957858430976/ethnic-campaign-399 .................Hey people....just managed to get this up and working......please have a check
    Ido S
    @id0Sch
    Hi, I'm trying to write a plugin that analyzes a specific object in the source code based on variable name. i've been trying to figure out how to use the parser for about 8 hours without any luck. i've managed to get the varDeclaration expression but couldn't figure out how to get the value of the object.
    the documentation is very lacking and is in correct, is there anyone that has experience with such a thing?
    KinsonDigital
    @KinsonDigital
    Hello all!!
    I am having an issue using libraries generated by webpack. Any assistance would greatly be appreciated. :smile:
    KuroyukiDev
    @KuroyukiDev
    Hi everyone, I'm new to Webpack and modularized JS development. I'm working on a Udemy lesson project that uses HTML, JS, AJAX, PHP and SQL, and I was wondering how to configure webpack.config.js to work with a MAMP server along with a webpack-dev-server. Anybody know how to set that up? I can take it from there once I have that set up.
    Or better yet, is there some CLI plugin for webpack-dev-server that integrates PHP Apache server and SQL server support for localhost development?
    Minanshu Singh
    @kryptokinght
    So i was going through the source code of the Tapable class which is the backbone of the entire plugin system of webpack. Webpack itself is made up of 100 of plugins that hook up to this event system. I was ASKING, which Javascript desgin pattern was followed in writing the Webpack source code?
    Edoardo Gallo
    @EdoardoGallo_twitter
    Hi guys, i don't know if it's OT but: i'm trying to revert a CommonJS library to ES2015 syntax. Is there something i can use in Webpack? I know that WebPack is the exact oppose but maybe there is some feature i could use.
    I also tried lebab package but it did not work due to the "unsafe" transforms on code
    Terry Di luzio
    @tdiluzio
    Hi guys I need your opinion, I'm working with factory components and am currently building them prior to use them in a parent app.
    Do you think it's a good idea to build them to production individually (what I'm doing currently)
    Or to all the heavy building stuffs in the parent app?
    Beknar Askarov
    @askbeka
    Hi, I want to replace all static es6 import declarations with dynamic import() ones, what is the best way to accomplish that? Couldn't find anything suitable on internet.
    I need this to safely externalise dependencies, if they are not available on page they will load it from CDN.
    I can make a loader, but I will not have proper source-maps, or make babel-plugin which is good but I need to combine it with webpack plugin I guess.
    Beknar Askarov
    @askbeka

    So that following

    import { html, LitElement} from 'lit-element';
    import lodash from 'lodash';
    ...

    will become something like

    (async ()=>{
      const [{ html, LitElement }, lodash] = await Promise.all([import('cdn.com/lit-element'), import('cdn.com/lodash')]);
      ...
    })()
    Any suggestions, would be appreciated:)
    Ron Sheppard
    @rmsheppard
    Is there any bugs or prerequisites need to be able to resolve an alias defined in webpack. For whatever reason my aliases will not resolve?