-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Invalid asm.js: Unexpected token - yoga-layout-prebuilt #898
Comments
Here from react-pdf. We are getting this issue as well. |
Not a clean error, but I found that printing text inside a |
In my scenario the error was the variable "ib" used everywhere in nbind.js |
Ciao guys, |
Same for us - when some components which uses reac-pdf and yoga-layout as its dependency is used in jest this error is printed out |
Jumping in as well from react-pdf using Jest specifically; would be incredible to have this fixed |
Bumping this. |
Same here. React-PDF. Seeing this issue too. Invalid asm.js: Unexpected token |
Bumping this. At least what does it mean? |
Bump! |
BumpetyBump? |
Bump |
Experiencing this issue as well. This issue as actually breaking my pre-render. |
Saaame |
I just found this after creating an issue against react-pdf for creating errors in Jest output: diegomura/react-pdf#1627 For that issue I created a minimal reproduction repo: https://github.com/cduff/react-pdf-linking-failure |
Bumpity Bump Bump Bump :) 10 months on since the last comment on this issue, also here from @react-pdf/renderer and this is still an issue in my jest output. React 16, @react-pdf/render v2.3.0 Would love to see this go away ... |
I'm also seeing this in my jest tests |
It looks like this is an issue with the built output of |
Report
There are a bunch of people over on react-pdf that are seeing this issue.
Issues and Steps to Reproduce
Very first message In the console when running a
create-react-app
with the react-pdf code usingnpm start
there is a cryptic message in the Chrome console log (during the react import/build process?)Invalid asm.js: Unexpected token .../app/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:5503
My environment is pretty much a vanilla create react app.
Tracked it down to the import statement:
import { PDFViewer, Document, Page, Text, View, StyleSheet } from '@react-pdf/renderer'
Expected Behavior
No warning from yoga-layout in the console.
Actual Behavior
Console message. Generates the PDF just fine.
Link to Code
Sorry, I tried to reproduce in https://codesandbox.io but it fails to import the PDF library.
It can be setup pretty easily with vanilla
create-react-app
and add the code in the readme at https://github.com/diegomura/react-pdfEnvironment
OS: Windows
Browser chrome
React-pdf version 1.5.6
The text was updated successfully, but these errors were encountered: