Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Uncaught ReferenceError: vendor_ is not defined when using DllReferencePlugin #1660

Closed
@sturatcliffe

Description

@sturatcliffe

Firstly, apologies for raising yet another issue around this, I've already tried everything in this one with no luck.

I've put together a sample application which displays this issue for me, it can be found here. The steps to reproduce are as follows:

Clone the above repo
dotnet restore
npm install
npm run webpack
dotnet run

I receive the following error: NodeInvocationException: vendor_19f7ef894c06af9bbdef is not defined

I've tried everything in the issue linked above, as well as playing around with the DllPlugin settings in both webpack.config.js and webpack.config.vendor.js. The only way to get the app working that I've found so far is to remove the following from webpack.config.js:

new webpack.DllReferencePlugin({
  context: __dirname,
  manifest: require("./wwwroot/dist/vendor-manifest.json")
})

Any ideas what I'm missing? I'm sure it's something very simple but I can't figure it out!

I'm running node v8.9.3 / npm v5.6.0 / dotnet v2.1.3 if it helps.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions