Giter Club home page Giter Club logo

Comments (15)

avarayr avatar avarayr commented on June 4, 2024 3

If anyone runs into this problem like me (being a complete beginner) using electron and WebWorkers, the issue is that web workers don't support Node so it is not possible to use fs or path

from worker-loader.

ahutchings avatar ahutchings commented on June 4, 2024 1

Can this be closed since #76 was merged and included in 1.0.0?

from worker-loader.

GProst avatar GProst commented on June 4, 2024

I thought it could be because of nvm which I use, but I switched to system nodejs via nvm use system command and webpack still throws these errors.

I also thought it could be target property, so I changed it to node, but it didn't help too.

from worker-loader.

GProst avatar GProst commented on June 4, 2024

It looks like it referenced to #44

from worker-loader.

TrySound avatar TrySound commented on June 4, 2024

@GProst Does it still work with webpack 1

from worker-loader.

GProst avatar GProst commented on June 4, 2024

@TrySound all worked well when I was on webpack 1, if that's what you asked

from worker-loader.

TrySound avatar TrySound commented on June 4, 2024

I mean current version of worker loader with webpack 1.

from worker-loader.

GProst avatar GProst commented on June 4, 2024

@TrySound yep, I've just checked it. 0.8.0 version seems to work fine with webpack 1. Btw, I updated up all of my loaders when migrated.

from worker-loader.

 avatar commented on June 4, 2024

Hi,

I ran into the same problem today. Any progress on this one so far?

from worker-loader.

TrySound avatar TrySound commented on June 4, 2024

@mdh-cc Not yet. I will be glad to accept a PR.

from worker-loader.

Zuzon avatar Zuzon commented on June 4, 2024

any news?

from worker-loader.

alexander-akait avatar alexander-akait commented on June 4, 2024

@Zuzon can your create minimal reproducible test repo?

from worker-loader.

Zuzon avatar Zuzon commented on June 4, 2024

in my case:
webpack build target is 'node-webkit' and when i try to import 'path' module in worker

from worker-loader.

Zuzon avatar Zuzon commented on June 4, 2024

it's possible with nwjs since 0.18.4

from worker-loader.

FrogTheFrog avatar FrogTheFrog commented on June 4, 2024

Any news regarding this issue?

from worker-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.