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

Closed
opened 2025-08-09 17:14:49 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @sturatcliffe on 5/28/2018

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

*Originally created by @sturatcliffe on 5/28/2018* Firstly, apologies for raising yet another issue around this, I've already tried everything in [this](https://github.com/aspnet/JavaScriptServices/issues/717) one with no luck. I've put together a sample application which displays this issue for me, it can be found [here](https://github.com/sturatcliffe/Vue2Dotnet2SSR). 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#52
No description provided.