Description
At first compilation, TS aborts with error module has no exported memeber 'EPA
. This is the import declaration at app/src/transcriptor/transcriptor.component.ts:13
import { EPA } from '@andalugeeks/andaluh';
It is weird the compilation aborts with the error, but at the same time it works upon compilation reload. Let's have a look:
$ ng serve
Your global Angular CLI version (10.1.4) is greater than your local
version (6.1.5). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
10% building modules 6/6 modules 0 activeℹ 「wds」: Project is running at http://localhost:4200/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/fontanon/Downloads/andaluh-cordova
ℹ 「wds」: 404s will fallback to //index.html
Date: 2021-03-12T13:51:58.704Z
Hash: 1aa2afdf12dbcbaedc5c
Time: 6043ms
chunk {main} main.js, main.js.map (main) 364 kB [entry] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 363 kB [entry] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 620 kB [entry] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 5.5 kB [initial] [rendered]
ERROR in src/app/transcriptor/transcriptor.component.ts(12,10): error TS2305: Module '"/home/fontanon/Downloads/node_modules/@andalugeeks/andaluh/dist/src/index"' has no exported member 'EPA'.
ℹ 「wdm」: Failed to compile.
Now we modify/save any file on the project (to force ng
to reload):
ℹ 「wdm」: Compiling...
69% building modules 318/321 modules 3 active …app/common/footer/footer.component.scssERROR in src/app/transcriptor/transcriptor.component.ts(12,10): error TS2305: Module '"/home/fontanon/Downloads/node_modules/@andalugeeks/andaluh/dist/src/index"' has no exported member 'EPA'.
Date: 2021-03-12T13:55:29.928Z - Hash: 62d188297c435d7204f0 - Time: 7343ms
2 unchanged chunks
chunk {main} main.js, main.js.map (main) 1.4 MB [entry] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 603 kB [entry] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 4.42 MB [initial] [rendered]
ℹ 「wdm」: Compiled successfully.
And the compilation ends successfully now. (•ิ_•ิ)? WHAAT? Why?
Evidence of app working here: https://drive.google.com/file/d/1U7BF1vwwmee_Qj0TKQ1vVDP41-Ui70Sn/view?usp=sharing
The issue is, building a production build will always fail. So the app cannot be turned into an android / iOS app anymore:
$ ng build --prod
Your global Angular CLI version (10.1.4) is greater than your local
version (6.1.5). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Date: 2021-03-12T13:59:35.427Z
Hash: f86595d354bedf7827f5
Time: 9402ms
chunk {0} runtime.a66f828dca56eeb90e02.js (runtime) 1.05 kB [entry] [rendered]
chunk {1} styles.aeca921d63180cdb3639.css (styles) 185 kB [initial] [rendered]
chunk {2} polyfills.e7f5364b276024e19b0b.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} main.0594610c91de797f492a.js (main) 128 bytes [initial] [rendered]
ERROR in src/app/transcriptor/transcriptor.component.ts(12,10): error TS2305: Module '"/home/fontanon/Downloads/node_modules/@andalugeeks/andaluh/dist/src/index"' has no exported member 'EPA'.
CONCLUSION: Something should be done in order to successfully import EPA
class from @andalugeeks/andaluh
but I'm not capable of figuring out how.