Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack out file question #172

Closed
izengliang opened this issue Jun 27, 2019 · 2 comments
Closed

webpack out file question #172

izengliang opened this issue Jun 27, 2019 · 2 comments

Comments

@izengliang
Copy link

Error

image

shell

cordova run browser -- --live-reload

About Code

config/webpack.common.js

...
    module: {
      rules: [
        {
          test: /\.ts$/,
          loader: "ts-loader"
        },
        {
          test: /\.js$/,
          exclude: /node_modules(\/|\\)(?!(framework7|framework7-vue|template7|dom7)(\/|\\)).*/,
          use: {
            loader: "babel-loader",
            options: {
              presets: [["env", {
                targets:{
                  "chrome": "78"
                }
              }]],
              plugins: ["transform-object-rest-spread"]
            }
          }
        }
...

tsconfig.json

{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": ["dom", "es2017"],
    "module": "es2015",
    "moduleResolution": "node",
    "sourceMap": true,
    "target": "esnext",
    "typeRoots": ["node_modules/@types"]
  },
  "include": ["src/**/*.ts"],
  "exclude": ["node_modules"],
  "compileOnSave": false,
  "downlevelIteration":true
}

User.ts

export class User {}
@caiobiodere
Copy link
Owner

@leozale could you please just check this link first ->
https://alexjover.com/blog/integrate-typescript-in-your-vue-project/

@caiobiodere
Copy link
Owner

caiobiodere commented Sep 22, 2019

Hi @zalelion hope you are having a good day, I just did some tests with your comments, and everything seems to work perfectly now, could you please try it again with the new 2.4.3 Version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants