There are many questions with this title, but I have a unique one for you.
An error message "SCRIPT1003: Expected ':' (1,78)" pops up when I launch my website.
I am using webpack and typescript in my project. Below is my tsconfig:
{
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"typeRoots": [
"./node_modules/@types"
],
"types": [ "jquery", "accounting","js-cookie" ],
"lib": ["es6", "dom"],
"allowSyntheticDefaultImports": true,
"module": "es6",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5"
},
"exclude": [
"**/*.spec.ts",
"node_modules",
"vendor",
"public"
],
"compileOnSave": false
}
Also, here is the environment.js file for webpack:
const { environment } = require("@rails/webpacker");
const { resolve } = require("path");
const webpack = require("webpack");
const typescript = require("./loaders/typescript");
const HoneybadgerSourceMapPlugin = require("@honeybadger-io/webpack");
const revision = process.env.GIT_COMMIT || "master";
const apiKey = "***********";
const assetsUrl = "/packs";
// More webpack configuration code...
The issue seems to be at row (1,78) in the code.
var o = e[i] ={
i,
l: !1,
exports :{}
};
This code appears to be autogenerated by webpack. Can you help me troubleshoot and fix this problem?