MurhafSousli / ngx-sharebuttons

Angular Share Buttons ☂
https://ngx-sharebuttons.netlify.app/
MIT License
528 stars 127 forks source link

Missing index.js file #168

Closed karptonite closed 7 years ago

karptonite commented 7 years ago

I'm submitting a ... (check one with "x")

[x] bug report => search for a similar issue before submitting
[ ] feature request
[ ] question

Versions

@angular/cli: 1.4.7
node: 8.7.0
os: darwin x64
@angular/animations: 5.0.0-rc.2
@angular/common: 5.0.0-rc.2
@angular/compiler: 5.0.0-rc.2
@angular/core: 5.0.0-rc.2
@angular/forms: 5.0.0-rc.2
@angular/http: 5.0.0-rc.2
@angular/platform-browser: 5.0.0-rc.2
@angular/platform-browser-dynamic: 5.0.0-rc.2
@angular/platform-server: 5.0.0-rc.2
@angular/router: 5.0.0-rc.2
@angular/cli: 1.4.7
@angular/compiler-cli: 5.0.0-rc.2
@angular/language-service: 5.0.0-rc.2

typescript: 2.5.3

ngx-sharebuttons 4.01

Repro steps

yarn add ngx-bootstrap import in app.module, as described in docs. ng serve

The log given by the failure

ERROR in ./node_modules/ngx-sharebuttons/index.js
Module build failed: Error: ENOENT: no such file or directory, open '/Users/karp/Documents/git/bgg/geekui2/node_modules/ngx-sharebuttons/index.js'
 @ ./src/app/app.module.ts 32:0-56
 @ ./src/main.ts
 @ multi webpack-dev-server/client?https://localhost:4200 ./src/main.ts

Note that after installation, while there is an index.ts.d file in ./node_modules/ngx-sharebuttons/, there is no index.js.

MurhafSousli commented 7 years ago

Here is a stackblitz that works with 4.0.1, can you reproduce the error there?