Comments (6)
Im having the same issue with npm link
edit: i just published my module to npm, and it still doesn't work...
https://www.npmjs.com/package/ng2-mouse-icon
from generator-angular2-library.
This seems to be an issue related to Webpack.
Angular CLI
If you use an Angular CLI generated project, you can resolve this manually by editing angular-cli/models/webpack-build-common.ts
in your node_modules directory and adding the following line under the extensions
key:
modules: [path.resolve(projectRoot, 'node_modules')]
You can read more details here. There seems to be a fix in the Angular CLI repository so a recent version of Angular CLI will probably fix this automatically.
Angular 2 Webpack Starter
If you are using Angular 2 Webpack Starter (instead of an Anguler CLI project) you can resolve it by changing:
modules: [helpers.root('src'), 'node_modules']
to:
modules: [helpers.root('src'), helpers.root('node_modules')]
in your Webpack configuration file.
You can read more details here.
Can you try and see if this works for you? Thanks!
from generator-angular2-library.
Hi all,
Any idea how someone not using webpack (and using SystemJS instead) can solve that issue?
Cheers!
Sacha
from generator-angular2-library.
@sachanacar — Have you found a solution yet for SystemJS? Thanks!
from generator-angular2-library.
Version 8.1.0 of this generator has been released, aligning with the latest Angular Package Format, which should solve this issue.
Feel free to re-open and report back if you experience issues with v8.1.0.
Thanks again for your great feedback! 👍
from generator-angular2-library.
I have an issue with "Unexpected value 'SampleModule' imported by the module 'AppModule'"(got here from #22) with version 11.1.0.
from generator-angular2-library.
Related Issues (20)
- Routing with lazy loaded modules, AOT compilation HOT 2
- NullInjectorError: No provider for ElementRef! HOT 17
- NullInjectorError: No provider for AlertService!
- "npm run build" fails when source open with Visual Studio Code
- Livereload not working on components in root folder (Angular 5 & Cli 1.7)
- Angular 4
- #260 not resolved HOT 1
- playground doesn't work HOT 3
- Error: Unexpected token <
- Error: StaticInjectorError[SampleService-> HttpClient] HOT 2
- Update to angular 6 HOT 2
- npm ERR! notarget No compatible version found: [email protected]
- How can I route jumps in third-lib packages?
- Some *.ts files are packaged and do not generate *.ts files.
- Wrong filenames in src/package.json?
- gulp error after upgrading to nodejs v10.x and npm v6.4.0 HOT 1
- playground not working with 3rd party library HOT 1
- Could not resolve entry (C:\Users\bhawin.parkeria\Music\datepicker\build/index.js) Starting 'rollup:fesm'
- Update to angular 7
- Angular 8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-angular2-library.