ReferenceError: webpackJsonp Error in Vue Js is not handled

I am encountering an Uncaught ReferenceError: webpackJsonp in Vue Js all of a sudden. Although I am new to Js, I have recently started working on Vue applications. I have attempted various solutions from Git and stackoverflow but none of them seem to be effective. Can someone provide assistance?

To provide some background, the issue arose without significant changes being made. The code was functioning properly before, but now even minor alterations such as modifying the css are triggering this problem. Based on my understanding, the webpack.prod.conf.js file is supposed to manage this (I have included mine below). If more information is required, please do let me know.

"use strict";
const path = require("path");
const utils = require("./utils");
const webpack = require("webpack");
const config = require("../config");
const merge = require("webpack-merge");
const baseWebpackConfig = require("./webpack.base.conf");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const OptimizeCSSPlugin = require("optimize-css-assets-webpack-plugin");
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");

const env = require("../config/prod.env");

const webpackConfig = merge(baseWebpackConfig, {
    module: {
        rules: utils.styleLoaders({
sourceMap: config.build.productionSourceMap,
            extract: true,
            usePostCSS: true
        })
    },
    devtool: config.build.productionSourceMap ? config.build.devtool : false,
    output: {
path: config.build.assetsRoot,
filename: utils.assetsPath("js/[name].[chunkhash].js"),
            chunkFilename: utils.assetsPath("js/[id].[chunkhash].js")
    },
    plugins: [
new webpack.DefinePlugin({
                "process.env": env
            }),
new UglifyJsPlugin({
                uglifyOptions: {
                    compress: {
                        warnings: false
                    }
                },
                sourceMap: config.build.productionSourceMap,
                parallel: true
            }),
new ExtractTextPlugin({
                filename: utils.assetsPath("css/[name].[contenthash].css"),
allChunks: true
            }),
new OptimizeCSSPlugin({
                 cssProcessorOptions: config.build.productionSourceMap ?
{
safe: true, map: { inline: false } } :
{ safe: true }
            }),
new HtmlWebpackPlugin({
filename: config.build.index,
template: "index.html",
inject: true,
minify: {
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true
},
chunksSortMode: "dependency"
}),
new webpack.HashedModuleIdsPlugin(),
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.optimize.CommonsChunkPlugin({
name: "vendor",
async: false,
minChunks(module) {
return (
module.resource &&
                            /\.js$/.test(module.resource) &&
module.resource.indexOf(path.join(__dirname, "../node_modules")) === 0
);
}
}),
new webpack.optimize.CommonsChunkPlugin({
name: "app",
async: "vendor-async",
children: true,
minChunks: 3
            }),
new webpack.optimize.CommonsChunkPlugin({
name: "manifest",
async: false,
minChunks: Infinity
            }),
new CopyWebpackPlugin([{
from: path.resolve(__dirname, "../static"),
to: config.build.assetsSubDirectory,
ignore: [".*"]
            }])
    ]
});

if (config.build.productionGzip) {
const CompressionWebpackPlugin = require("compression-webpack-plugin");

webpackConfig.plugins.push(
new CompressionWebpackPlugin({
asset: "[path].gz[query]",
algorithm: "gzip",
test: new RegExp(
"\\.(" + config.build.productionGzipExtensions.join("|") + ")$"
),
threshold: 10240,
minRatio: 0.8
        })
);
}

if (config.build.bundleAnalyzerReport) {
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin;
webpackConfig.plugins.push(new BundleAnalyzerPlugin());
}

module.exports = webpackConfig;

Answer №1

Your webpack configuration is missing entry points, which means you haven't specified where the application should begin. Additionally, the problem may be related to mentioning vendor in your setup. For more details, please visit this resource

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Can the state stored in vuex be accessed by nested components?

After reviewing the documentation at: https://vuex.vuejs.org/guide/mutations.html#committing-mutations-in-components and watching the video tutorial here: I'm unsure whether the store is accessible in nested or child components within the parent co ...

I am facing an issue where the table in my Laravel Vue component is not displaying the data from

Recently, I've been diligently following an instructional series on VUE applications by a highly recommended YouTuber. Every step was meticulously executed until I hit a roadblock out of nowhere. The data from my database refuses to display on the fro ...

Guide: "Sending an AJAX request upon selecting an item in a Vue.js 'Select' element using vue-resource"

Is it possible to send an ajax request through vue-resource when a specific item is selected from a "Select" in vuejs? Check out the demo here: https://jsfiddle.net/xoyhdaxy/ <div class="container" id="app"> <select v-model="selected"> ...

Looping through a collection of data in Vue.js and dynamically generating labels for input

Is there a way to ensure the input id and label for are unique for repeated input elements while using Vue.js v2? <section class="section" v-for="(section, i) in sections"> <div class="fields"> <fieldset> <inp ...

Putting Vee-Validate's confirmed rule to the test

I am encountering some challenges testing a Vee-Validate confirmed function on a Vue form that is constructed using Vuetify. The component I am attempting to test has the following structure: <template> <form novalidate ref="loginForm" v-mode ...

Prevent global CSS from affecting VueJS by enabling only scoped CSS within components

Is there a way to eliminate all global CSS within a VueJS component and only allow scoped CSS? If so, how can this be achieved? Below is the issue I am trying to address: * { /* Global styles */ } /* Component-specific styles */ .items ul { } .i ...

I am interested in utilizing Vue Fallthrough attributes, but I specifically want them to be applied only to the input elements within the component and not on the container itself

I am facing an issue with my checkbox component. I want to utilize Fallthrough attributes to pass non-declared attributes to the input inside the checkbox component. However, when I add HTML attributes to the Vue component, those attributes are applied not ...

getting specific article by id -- vue routing, vuex

Trying to retrieve the article ID and navigate to the detail page for that specific ID. Attempted the following code snippet but encountered an error in the console: api/v1/article[object%20Object]:1 Failed to load resource: the server responded with ...

Vetur is experiencing issues with template functionality, such as not properly checking data and methods

I have incorporated the vetur extension into my Visual Studio Code for a Vue project using TypeScript. I recently discovered that vetur has the capability to perform type checks within the template tag for props, methods, and even variables. However, in ...

turn off date selection in vue date picker

I am working on disabling specific dates within a date picker. However, my current approach doesn't seem to be fully functional. <v-date-picker v-model="dates3" :max-date="today"> </v-date-picker> data( ...

Facing a problem with running npm start on jHipster

I am currently working on a jhipster project on my MacBook Pro running macOS Mojave v.10.14.4. After successfully compiling with npm start, the code continues to compile multiple times without any changes. Eventually, it throws the following error: DONE ...

I am currently in the process of cross-referencing the tags that have been retrieved with those that have been selected or created. If a tag does not exist

I have a collection of tags in an object, and I want to dynamically add new tags before submitting the form. Despite using vue watch, it doesn't seem to be working for me. Here is the code snippet: data() { return { blog: { blog_ti ...

Always make sure to call for files using their respective names in

Here is how my project structure looks like: . ├── node_modules ├── package.json ├── www │ ├── css │ ├── js │ ├── file.js │ ├── folder │ ├── file2.js │ ├─ ...

Modifying Parent Component Layout Using Vue.js

I am currently in the process of converting a UI element into a component for the purpose of reuse. This particular element consists of two buttons that toggle the visibility of two DOM elements within the parent app. The state of these buttons is stored i ...

Looking for ways to streamline your React and Vue projects by reducing the number of

Coming from a background in emacs and xterm, I am accustomed to working with just a few files and having complete control over my work. Now I am delving into the world of React and Vue, but I was taken aback when I saw the sheer number of files generated f ...

Intellisense with JavaScript methods is not supported in Vue files

While running Vue 2.6 in VSCode, I've noticed that my intellisense functions perfectly within js files. However, as soon as I switch to a vue file, all my intellisense capabilities disappear. I have the most up-to-date version of VSCode installed and ...

Create a dropdown menu with selectable options using a b-form-select

I am working with a b-form-select element that displays options based on user input. I am trying to figure out how to trigger a function when the user selects one of the dynamically generated <b-form-option> elements, but I am struggling to capture b ...

Steps to turn off carousel feature in v-tabs

I'm currently working on a horizontal navigation bar using the v-tabs and v-tabs-items components to switch between slides by clicking on a specific tab. However, I have encountered an issue where Vuetify automatically adds a carousel to the v-tabs c ...

When utilizing Vue JS, each key value of one computed property can trigger another computed property to run

I have a computed property: getRelatedItem () { return this.allItems.find((item) => { return item.id === this.currentSelectedItemId }) }, Here is an example of the output: relatedItem:Object -KQ1hiTWoqAU77hiKcBZ:true -KQ1tTqLrtUvGnBTsL-M:tr ...

What strategies can be implemented to decrease the size of the app.js file with such a bulky bundle size

Utilizing Vue.js in my project with just 4 components. Imported dependencies are restricted to bootstrap, jquery, and lodash: import { map } from 'lodash'; import 'bootstrap/js/dist/modal'; import $ from "jquery"; The issue ...