Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:26
    webpack-bot labeled #16167
  • 08:26
    exposir opened #16167
  • Aug 17 21:10
    niieani edited #16162
  • Aug 17 20:46
    niieani edited #16162
  • Aug 17 20:46
    niieani edited #16162
  • Aug 17 20:43
    webpack-bot labeled #16162
  • Aug 17 20:43
    niieani opened #16162
  • Aug 16 13:06
    KurumiRin synchronize #16144
  • Aug 16 12:43
    KurumiRin synchronize #16144
  • Aug 16 12:38
    KurumiRin synchronize #16144
  • Aug 16 07:19
    vankop reopened #16144
  • Aug 16 07:19
    vankop closed #16144
  • Aug 16 02:13
    KurumiRin review_requested #16144
  • Aug 16 02:05

    dependabot[bot] on npm_and_yarn

    Bump eslint-plugin-jest from 24… (compare)

  • Aug 16 02:05

    dependabot[bot] on npm_and_yarn

    (compare)

  • Aug 16 02:05
    dependabot[bot] closed #16130
  • Aug 16 02:05
    webpack-bot labeled #16154
  • Aug 16 02:05
    dependabot[bot] labeled #16154
  • Aug 16 02:05
    dependabot[bot] opened #16154
  • Aug 16 01:07
    webpack-bot labeled #16153
Alexander Akait
@alexander-akait
browser doesn't prove api on js :smile:
Chris
@ipatch
looks like sindresorhus uses a series of if statements to check for various OS flavors, i mean there's only 3 major OSes that would require support.
• macOS
• Windows
• *nix Linux
Alexander Akait
@alexander-akait
simple: we can't to ask browser open package in same tab
because browser doesn't have api for this
Chris
@ipatch

like ALL browser, i guess "brower" == "to all major browsers" == [Chrome, Firefox, IE, Opera, etc]

your saying not a single browser provides a feature as the one we're describing?

deAtog
@deAtog
@ipatch I think you are misunderstanding the issue here.. to open a URI or file on Linux, OSX, Windows, etc. most applications just pass the URI or file location to an external program which then determines how to open the given URI or file. The process used is similar to how a file browser opens a file and is equivalent to requesting the same file be opened multiple times.
Alexander Akait
@alexander-akait
@deAtog :+1:
Chris
@ipatch
"well webpack would be much cooler if it did"™️
Aditya Prakash
@pAditya198
@deAtog I don't understand the last part about opening same file multiple times?
deAtog
@deAtog
@pAditya198 If you open a file browser in any OS and open a file it will launch the appropriate program to open the file. Each time you perform that action it will start another instance of that program and open the requested file. Some programs such as Microsoft Word will detect that the requested file is already open and not create another window with the file open. Other applications such as Adobe Acrobat Reader or Notepad in Windows will not. Web browsers behave like the latter because you can have many tabs open all on the same site.
gideon ubaldo
@gideonubaldo
Hi, hope you guys are well. I am new to webpack and I was wondering how to access components(with dependencies) that has been bundled? I am using it with react. Is there anyone that has an idea for this or could direct me to a resource?
Aditya Prakash
@pAditya198
@deAtog Thanks got it.
sdyalor
@sdyalor
anyone with pwa-starter-kit?
Wagner Barongello
@barongello
How to compile sass with webpack? I am trying like this: https://pastebin.com/Vm4Bxr5N But then in the compiled file I got the webpack js instead of css
edwardj2
@edwardj2
1Ju9B75vBy9bZNwjD4UWaVwzfpuwKH1mG4
Akash Vishwakarma
@akashishu777
Hi, just wanted to ask you guys, I am using webpack and my project is having index.css.map file does it work with webpacl?
Uzlopak
@Uzlopak
Hi, anyone awake :)?
Uzlopak
@Uzlopak
when i want to use the webworker plugin with typescript i get an unhandled type error
and i just use the example on the plugin page
Luke Kang
@kidkkr
maybe your codebase has TypeError indeed.
Does error message from tsc ? (typescript compiler)
YuDi-JerrY
@YuDi-JerrY
after bundling my code...JSON.parse() not working in my bundled file...it is doing nothing just getting printed as a line.
anyone can suggest something on this?
Anjul
@anjultramp_twitter
Hi All I will be needing some assitance.
Kabue Charles
@McKabue
Event or callback when webpack fails to load a module or chunk
https://stackoverflow.com/q/57843320/3563013

Is there some callback or Event in webpack to know when a module or chunk has failed to load in the browser?

I know that webpack can tell you that a certain module is not found when bundling, but suppose you make some changes to the scripts, but a user is already in the webapp... then the chunk names that were bundled earlier will not be found.

Below is such error that will appear:

fb81469e-872e-4459-b2ba-91ebfaf50d48.js:106 Uncaught (in promise) ChunkLoadError: Loading chunk 28 failed.

https://stackoverflow.com/q/57843320/3563013

Alexander Akait
@alexander-akait
Without example nobody can help
Kabue Charles
@McKabue
what do you mean by example? the description describes the issue... it cant be examplified
Alexander Akait
@alexander-akait
example of config or reproducible test repo
Kabue Charles
@McKabue
this is not an issue with config or anything failing in webpack, its a functionality... does webpack support the functionality described?
Alexander Akait
@alexander-akait
what?
Kabue Charles
@McKabue

Is there some callback or Event in webpack to know when a module or chunk has failed to load in the browser?

I know that webpack can tell you that a certain module is not found when bundling, but suppose you make some changes to the scripts, but a user is already in the webapp... then the chunk names that were bundled earlier will not be found.

Below is such error that will appear:

fb81469e-872e-4459-b2ba-91ebfaf50d48.js:106 Uncaught (in promise) ChunkLoadError: Loading chunk 28 failed.
Alexander Akait
@alexander-akait
No need copy/paste, answer above
You have try/catch
you don't need event/callback
Kabue Charles
@McKabue
no i haven't, will try that... thanks
John Marinelli
@johnmarinelli
@McKabue do you know why your chunk is not loading?
Kabue Charles
@McKabue
yes, i know why. my chunk is not loading because i re-bundled the modules again and uploaded them to the server. meanwhile, a user was already on the webapp, but when they want to navigate to another page that requires a dynamically loaded chunk, the chunk name is not there because chunk name has changed
Alexander Akait
@alexander-akait
There are a lot of problems, for example network, problem in minimizer, etc, need reproducible test repo
John Marinelli
@johnmarinelli
@McKabue what you're trying to do is not really possible nor recommended. once your chunks are uploaded to the server, that's what the user is going to get. look into chunk manifests
Iwan Aucamp
@aucampia
hi
John Marinelli
@johnmarinelli
@McKabue https://webpack.js.org/concepts/manifest/#root so, when you upload your new bundles, you also need to make sure the webpack manifest is updated and uploaded as well
Rob
@rm-rf-etc
This documentation page doesn't say how to disable HMR: https://webpack.js.org/concepts/hot-module-replacement/
I guess it's on this page. https://webpack.js.org/guides/hot-module-replacement/
I put hot: false on devServer but I'm still getting an error about sockjs
Kabue Charles
@McKabue

@johnmarinelli maybe i was not clear in my description. The thing is, there are several times when a chunk will not be found, like when there is no network, or the server is down, or the chunk that was meant to be loaded dynamically has been deleted at the server, or the chunk that was meant to be loaded dynamically has been replaced by another update/build from a security update to the code.

The last two cases will occur if the client/user was already in the browser, but they attempt to go the page that requires the chunk that is no longer there... so, boom... the chunk cant be loaded... now, i needed to catch that error that the chunk cant be loaded, which i figured out, see https://stackoverflow.com/a/57860730/3563013

Alexander Akait
@alexander-akait
@rm-rf-etc what error you got?
Rob
@rm-rf-etc
@evilebottnawi was something like file:sockjs not found. Running devserver with electron. Got it working now.
Alexander Akait
@alexander-akait
@rm-rf-etc feel free to open new issue with reproducible test repo, we have sockPath, sockPort and etc option when you use non standard structure
Rob
@rm-rf-etc
Stuck on a different problem now. My webpack project builds but my output doesn't have any exports
Different project. Not electron