matsura / ng2-dual-list-box

A dual list box component for Angular 4
http://ng2-duallistbox-demo.surge.sh/
28 stars 20 forks source link

Error while generating production build. #27

Open sundertinwar opened 6 years ago

sundertinwar commented 6 years ago

Hi,

I has used this control in January in my Angular 4 project (version : 1.0.5). Currently we are about to release the project but I am getting warnings/errors while generating the build. ng build --prod --base-href /myproj/

I am getting below warnings -

WARNING in ./src/$$_gendir/node_modules/ng2-dual-list-box/ng2-dual-list-box.ngfactory.ts
86:34-39 "export 'ɵa' (imported as 'i1') was not found in 'ng2-dual-list-box'
    at HarmonyImportSpecifierDependency._getErrors (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\dependencies\HarmonyImportSpecifierDependency.js:65:15)
    at HarmonyImportSpecifierDependency.getWarnings (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\dependencies\HarmonyImportSpecifierDependency.js:39:15)
    at Compilation.reportDependencyErrorsAndWarnings (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\Compilation.js:677:24)
    at Compilation.finish (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\Compilation.js:535:9)
    at applyPluginsParallel.err (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\Compiler.js:512:17)
    at C:\TFS\LabSOR\LabSOR\node_modules\tapable\lib\Tapable.js:289:11
    at _addModuleChain (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\Compilation.js:481:11)
    at processModuleDependencies.err (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\Compilation.js:452:13)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

WARNING in ./src/$$_gendir/node_modules/ng2-dual-list-box/ng2-dual-list-box.ngfactory.ts
86:57-62 "export 'ɵb' (imported as 'i1') was not found in 'ng2-dual-list-box'
    at HarmonyImportSpecifierDependency._getErrors (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\dependencies\HarmonyImportSpecifierDependency.js:65:15)
    at HarmonyImportSpecifierDependency.getWarnings (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\dependencies\HarmonyImportSpecifierDependency.js:39:15)
    at Compilation.reportDependencyErrorsAndWarnings (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\Compilation.js:677:24)
    at Compilation.finish (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\Compilation.js:535:9)
    at applyPluginsParallel.err (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\Compiler.js:512:17)
    at C:\TFS\LabSOR\LabSOR\node_modules\tapable\lib\Tapable.js:289:11
    at _addModuleChain (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\Compilation.js:481:11)
    at processModuleDependencies.err (C:\TFS\LabSOR\LabSOR\node_modules\webpack\lib\Compilation.js:452:13)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

After warnings if I deploy this build I am getting below errors in browser console and control not loading image Any idea why it is not working?

sundertinwar commented 6 years ago

I am not getting this errors while generating Dev (not compressed/uglyfy) build.

ng build -e dev --base-herf /myproj/

Rajh commented 5 years ago

+1 Did you manage to fix this @sundertinwar ?