Software Version: 2.5.11
Link to Reproduction: https://jsfiddle.net/ranjs/eh10wju7/
Steps to Reproduce:
The functionality works correctly in Google Chrome, but an error occurs in Firefox:
'TypeError: undefined is not a constructor [Learn More]
and the screen remains blank.
[Show/hide message details.] TypeError: undefined is not a constructor[Learn More] build.js:1:182494
<anonymous>
http://localhost:25555/static/dist/build.js:1:182494
<anonymous>
http://localhost:25555/static/dist/build.js:1:181955
r
http://localhost:25555/static/dist/build.js:1:96
<anonymous>
http://localhost:25555/static/dist/build.js:1:4377
r
http://localhost:25555/static/dist/build.js:1:96
<anonymous>
http://localhost:25555/static/dist/build.js:1:247068
r
http://localhost:25555/static/dist/build.js:1:96
<anonymous>
http://localhost:25555/static/dist/build.js:1:457
<anonymous>
http://localhost:25555/static/dist/build.js:1:2
Expected Behavior:
Application displays content normally
Actual Result: Error message displayed and no content visible.
I have uploaded my main.js
file and this is my package.json
:
'{
"name": "chatbotmariana",
"description": "A Vue.js project",
"version": "1.0.0",
"author": "Ranieri Abreu Silva Junior <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5a283b38283f2f1a33343e283b3935372a3b342374393537">[email protected]</a>>",
"license": "MIT",
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"prod": "cross-env NODE_ENV=development webpack-dev-server --port 80 --hot --host 0.0.0.0"
},
...
I am working with JavaScript and do not have a tsconfig
.
.bablrc :
{
"presets": [
["env", { "modules": false }],
"stage-3"
]
}
webpack.config.js
var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: './src/main.js',
output: {
...
}
...