-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
a bunch of errors after import #238
Comments
Are you using react-pdf in the web or on the server? |
@diegomura I am using in the web using react + redux not on the server |
To run on the browser you will need to do a special webpack setup. Please check this https://github.com/react-pdf/site/blob/master/webpack.config.js#L23 as reference |
Im running on a local browser. Errors left:
|
Did you included?
|
Oh sorry I didn't seen the end of the webpack but thanks! WARNING in ./node_modules/har-validator/node_modules/ajv/lib/async.js WARNING in ./node_modules/har-validator/node_modules/ajv/lib/compile/index.js WARNING in ./node_modules/har-validator/node_modules/ajv/lib/async.js |
No clue about that, but I'm not sure if it's something related to this project. Please try to emulate react-pdf site as much as you can |
now im having this issue Uncaught ReferenceError: regeneratorRuntime is not defined |
In the README:
|
i did import 'regenerator-runtime/runtime'; on my react component itself where react-pdf is. it is still not working.. do I need to include something in webpack? |
Same here. I get |
I included a babel-polyfill in my webpack file and its alright now module.exports={ |
Thanks for reporting the fix! |
@JSouthWind and anyone else that gets here from google, re: the CSP error - see #510 |
OS: Mac Sierra
React-pdf version: 0.7.6
Description:
Steps I did:
How to replicate issue including code snippet (if applies):
Module build failed:
Module not found: Error: Can't resolve './cjs/react-reconciler.development.js'
Module not found: Error: Can't resolve './mixins/annotations'
Module not found: Error: Can't resolve './mixins/color'
Module not found: Error: Can't resolve './mixins/fonts'
Module not found: Error: Can't resolve './mixins/images'
Module not found: Error: Can't resolve './mixins/text'
Module not found: Error: Can't resolve './mixins/vector'
Module not found: Error: Can't resolve 'fs'
Module not found: Error: Can't resolve 'fs'
Module not found: Error: Can't resolve 'fs'
Module not found: Error: Can't resolve 'net'
Module not found: Error: Can't resolve 'net'
Module not found: Error: Can't resolve 'net'
Module not found: Error: Can't resolve 'tls'
Module not found: Error: Can't resolve 'tls'
The text was updated successfully, but these errors were encountered: