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

@azure/ai-form-recognizer breaks Nuxt3 on netlify (Cannot find package 'tslib') #28028

Closed
3 tasks
JavascriptMick opened this issue Dec 10, 2023 · 1 comment
Closed
3 tasks
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-triage This issue needs the team to triage. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@JavascriptMick
Copy link

JavascriptMick commented Dec 10, 2023

  • Package Name: @azure/ai-form-recognizer
  • Package Version: 5.0.0
  • Operating system:netlify
  • [18.x ] nodejs
    • version:
  • [ chrome/119.0.6045.159] browser
    • name/version:
  • [ 5.0.3] typescript
    • version:
  • Is the bug related to documentation in

Describe the bug
Nuxt3 site with @azure/ai-form-recognizer deployed to netlify breaks site

To Reproduce

  1. Add @azure/ai-form-recognizer as an npm dependency to a nuxt3 site
  2. deploy to netlify using automated deployment
    Error....
Dec 10, 11:04:47 PM: 35d00016 ERROR  [nuxt] [request error] [unhandled] [500] Cannot find package 'tslib' imported from /var/task/.netlify/functions-internal/server/chunks/app/server.mjs
  at new NodeError (node:internal/errors:405:5)  
  at packageResolve (node:internal/modules/esm/resolve:895:9)  
  at moduleResolve (node:internal/modules/esm/resolve:988:20)  
  at moduleResolveWithNodePath (node:internal/modules/esm/resolve:939:12)  
  at defaultResolve (node:internal/modules/esm/resolve:1181:79)  
  at nextResolve (node:internal/modules/esm/loader:163:28)  
  at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)  
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)  
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)  
  at link (node:internal/modules/esm/module_job:76:36)

Expected behavior
site works.

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2023-12-11 at 7 57 01 am

Additional context

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-triage This issue needs the team to triage. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 10, 2023
@JavascriptMick
Copy link
Author

This is a tslib issue. for your ref, discussion and my fix (hack) is here microsoft/tslib#143 (comment)

@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-triage This issue needs the team to triage. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

1 participant