Skip to content

Upgrading to 3.0.2 : Errors in previously 'clean' build #655

Closed
@roddypratt

Description

@roddypratt

I've been using 2.3.7 for a while without issues. Upgraded to 3.0.2, and suddenly I see loads of errors in the build.

Most are JQuery related, like

ERROR in ./src/buttonbus.ts
[tsl] ERROR in C:\WebCentre\src\buttonbus.ts(30,11)
      TS2304: Cannot find name 'JQuery'.

I'm using TS 2.5.3, Webpack 3.7.1

Webpack.js has this snippet

      {
        test: /\.ts$/,
        loader: 'ts-loader',
        options: {
            logLevel: "info"
          }
      },

... and my tsconfig.json looks like this.

{
  "compileOnsave": true,
  "compilerOptions": {
    "module": "es6",
    "removeComments": true,
    "outDir": "js_out",
    "allowJs": true,
    "sourceMap": true,
    "noImplicitAny" : false,
    "noUnusedLocals": false,
    "noImplicitReturns": true,
    "noImplicitThis": true,
    "forceConsistentCasingInFileNames": true,
    "target": "es6",
    "types" : ["fb", "gapi.youtube"]
  },
  "include": [ "src/*.ts" ]
}

Any suggestions welcome. I appreciate there's a big change to V3 but I can't see anything relevant in the options that I'd need to adjust?

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