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

Module Build Failed Error: index.ts is not part of the compilation output #6

Open
mypark opened this issue Dec 15, 2017 · 2 comments
Open

Comments

@mypark
Copy link

mypark commented Dec 15, 2017

I'm getting the following error on build with angular 5:

node_modules/ng-select2/index.ts is not part of the compilation output. Please check the other error messages for details.

@icecoldfire
Copy link

See: #angular/angular#20091

You can fix this by adding this code in your tsconfig.json file:

"include": [
    "src/**/*.ts",
    "node_modules/ng-select2/index.ts"
  ]

complete file:

{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2017",
      "dom"
    ]
  },
  "include": [
    "src/**/*.ts",
    "node_modules/ng-select2/index.ts"
  ]
}

@icecoldfire
Copy link

#18 can permanently fix these and give aot support

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