-
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 Error with /node_modules/pdfjs-dist/build/pdf.combined during npm start #8
Comments
@samuelzhong, Are you using Webpack or SystemJS? |
I am using SystemJS. thanks! |
@samuelzhong Could you specify what do you have in |
I added in :
and in map and packages as below. /**
|
@samuelzhong add const packages: any = {
'ng2-pdf-viewer': { main: 'dist/pdf-viewer.component.min.js', defaultExtension: 'js' },
'pdfjs-dist': { defaultExtension: 'js' }
}; |
@rohan2934 According to your configuration 'moment': `node_modules/moment/moment.js`,
'ng2-pdf-viewer': { main: 'dist/pdf-viewer.component.min.js', defaultExtension: 'js' },
'pdfjs-dist': 'node_modules/pdfjs-dist',
'ng2-select': 'node_modules/ng2-select/ng2-select.js',
'ng2-pagination': 'node_modules/ng2-pagination/dist/ng2-pagination.js',
'traceur': 'node_modules/traceur/src/traceur.js', instead of 'ng2-pdf-viewer': { main: 'dist/pdf-viewer.component.min.js', defaultExtension: 'js' }, try this: 'ng2-pdf-viewer': { main: 'node_modules/ng2-pdf-view/dist/pdf-viewer.component.min.js', defaultExtension: 'js' }, |
thank you @VadimDez it works.. |
I am getting this error during npm start without .js extension - but the pdf.combined.js is in that directory.
if I added "pdf.combined" with ".js" in node_modules/ng2-pdf-viewer/dist/pdf-viewer.component.min.js, the app can start.
Please kindly advise the issue.
Thanks!
16.08.27 18:40:16 404 GET /node_modules/pdfjs-dist/build/pdf.combined
The text was updated successfully, but these errors were encountered: