ERROR in /Users/demetrius.tech/dev/nativescript/nativescript-nfc/src/nfc.ts
Module build failed (from ../node_modules/@ngtools/webpack/src/index.js):
Error: /Users/demetrius.tech/dev/nativescript/nativescript-nfc/src/nfc.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
at NativeScriptAngularCompilerPlugin.getCompiledFile (/Users/demetrius.tech/dev/nativescript/nativescript-nfc/demo-ng/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:933:23)
at NativeScriptAngularCompilerPlugin.getCompiledFile (/Users/demetrius.tech/dev/nativescript/nativescript-nfc/demo-ng/node_modules/nativescript-dev-webpack/plugins/NativeScriptAngularCompilerPlugin.js:28:26)
at /Users/demetrius.tech/dev/nativescript/nativescript-nfc/demo-ng/node_modules/@ngtools/webpack/src/loader.js:41:31
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
@ ./app/main/main.component.ts 3:0-39 9:24-27
@ ./app/app.module.ts
@ ./main.ts
Executing webpack failed with exit code 2.
It works adding the nativescript-nfc plugin from the repository.
Hi,
OS: MacOS NativeScript: latest (platforms: 6.5.1, tns-core-modules: 6.5.5)
I am trying to add the plugin from an NativeScript angular project:
tns plugin add ../src
and it throws the following error on build:
ERROR in /Users/demetrius.tech/dev/nativescript/nativescript-nfc/src/nfc.ts Module build failed (from ../node_modules/@ngtools/webpack/src/index.js): Error: /Users/demetrius.tech/dev/nativescript/nativescript-nfc/src/nfc.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. at NativeScriptAngularCompilerPlugin.getCompiledFile (/Users/demetrius.tech/dev/nativescript/nativescript-nfc/demo-ng/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:933:23) at NativeScriptAngularCompilerPlugin.getCompiledFile (/Users/demetrius.tech/dev/nativescript/nativescript-nfc/demo-ng/node_modules/nativescript-dev-webpack/plugins/NativeScriptAngularCompilerPlugin.js:28:26) at /Users/demetrius.tech/dev/nativescript/nativescript-nfc/demo-ng/node_modules/@ngtools/webpack/src/loader.js:41:31 at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
@ ./app/main/main.component.ts 3:0-39 9:24-27
@ ./app/app.module.ts
@ ./main.ts
Executing webpack failed with exit code 2.
It works adding the nativescript-nfc plugin from the repository.