Skip to content
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

Expecting Unicode escape sequence \uXXXX. (1026:64) #182

Open
SolankiYogesh opened this issue Jun 10, 2024 · 3 comments
Open

Expecting Unicode escape sequence \uXXXX. (1026:64) #182

SolankiYogesh opened this issue Jun 10, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@SolankiYogesh
Copy link

SolankiYogesh commented Jun 10, 2024

Describe the bug
Transformation failed in some cases with the error

To Reproduce

    <div class="w-50 width-100 position-relative">
    <div style="display: flex;
    position: absolute;
    bottom: calc(100% - 15px);
    width: calc(100% - 30px);
    justify-content: space-between;
    align-items: baseline;">
    <img id="signBuyerImage" ${Utility.isEmpty(data?.buyer_signature) ? `src="${data?.buyer_signature}"` : ''}  style="max-width: 171px;max-height: 60px;object-fit: contain;width:auto; visibility: ${Utility.isEmpty(data?.buyer_signature) ? 'visible' : 'hidden'};"  />
    <span id="signBuyerTime" style="">${
      Utility.isEmpty(data?.buyer_signature_timestamp)
        ? moment(data?.buyer_signature_timestamp).format('MM/DD/YYYY hh:mm A')
        : ''
    }</span>
    </div>
       <input id="signBuyer" disabled class="flex-input w-100">
       <label class="mb-5">Buyer</label>
      
       <input disabled  class="flex-input w-100">
       <label class="mb-5">Buyer</label>
    </div>
    <div class="w-50 width-100 position-relative">
    <div style="display: flex;
    bottom: calc(100% - 15px);
    width: calc(100% - 30px);
    position: absolute;
    justify-content: space-between;
    align-items: baseline;">
    <img id="signSellerImage" ${Utility.isEmpty(data?.seller_signature) ? `src="${data?.seller_signature}"` : ''} style="max-width: 171px;max-height: 60px;object-fit: contain;width:auto; visibility: ${Utility.isEmpty(data?.seller_signature) ? 'visible' : 'hidden'};"  />
    <span id="signSellerTime" style="">${
      Utility.isEmpty(data?.seller_signature_timestamp)
        ? moment(data?.seller_signature_timestamp).format('MM/DD/YYYY hh:mm A')
        : ''
    }</span>
    </div>
       <input id="signSeller" disabled class="flex-input w-100">   
       
       <label class="mb-5">Seller</label>
      
       <input disabled  class="flex-input w-100">
       <label class="mb-5">Seller</label>
    </div>
 </div>

image

Expected behavior
A clear and concise description of what you expected to happen.

Platform:

  • Version of [react-native, expo]: 0.74.2
  • Version of this package: 0.0.12

Additional context
Add any other context about the problem here.

@inokawa inokawa added the help wanted Extra attention is needed label Jun 10, 2024
@SolankiYogesh
Copy link
Author

@inokawa bro i updated html code if you have solution please give me here

         const res = await bundle(filename, metroOptions);
         return metroTransformer.transform({
             ...args,
         src:  "export default String.raw`" +
          escape(res).replace(/\\([`$?])/g, '\\$1'),
         });
     }
     ```
     
     i tried here but not working

@JJSLIoT
Copy link

JJSLIoT commented Jun 12, 2024

I started facing the same issue after upgrading from react-native 71.x to 72.x

@hichemfantar
Copy link

same issue here especially with expo-gl and three.js
"react-native": "0.74.3",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants