Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Inability to find Worker Loader on Symlinked plugins #1009

Open
@NathanaelA

Description

@NathanaelA

Environment

  • CLI: 6.02
  • Plugin(s): dev-webpack:1.01
  • Node.js:10.15.3

Describe the bug
I have two plugins, both are symlinked into the plugin folder;
NS-Sqlite -> loads NS-Sqlite-Commercial
NS-Sqlite-Commercial requires the worker loader for the worker support.

NS-Sqlite-commercial fails on the line

const SqliteWorker = require("nativescript-worker-loader!./commercial-worker.js");

With the error:
image

To Reproduce
Symlinked Plugin using the nativescript-worker-loader...

Expected behavior
Works

Additional context
Fix:

        resolveLoader: {
            modules: [
                resolve(__dirname, "node_modules"),
                "node_modules"
            ],
            // don't resolve symlinks to symlinked loaders
            symlinks: false
        },

Change the resolveLoader, modules to also have the same fix as we used for the symlink file issue #983

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy