I\'ve started using webpack2 (to be precise, v2.3.2
) and after re-creating my config I keep running into an issue I can\'t seem to solve I get (sorry in advance
In my case, it was due to a broken sym link when trying to npm link a custom angular library to consuming app. After running npm link @authoring/canvas
```"@authoring/canvas": "path/to/ui-authoring-canvas/dist"``
It appear everything was OK but the module still couldn't be found:
When I corrected the import statement to something that the editor could find Link:
import {CirclePackComponent} from '@authoring/canvas/lib/circle-pack/circle-pack.component';
I received this which is mention in the overflow thread:
To fix this I had to:
cd /usr/local/lib/node_modules/packageName
cd ..
rm -rf packageName
In the root directory of the library, run:
a. rm -rf dist
b. npm run build
c. cd dist
d. npm link
In the consuming app, update the package.json with "packageName":"file:/path/to/local/node_module/packageName""
In the root directory of the consuming app run npm link packageName