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

App hungs up: global is *still* not defined #2705

Open
electrocnic opened this issue Jan 28, 2025 · 3 comments
Open

App hungs up: global is *still* not defined #2705

electrocnic opened this issue Jan 28, 2025 · 3 comments

Comments

@electrocnic
Copy link

This issue: #2639

is still not resolved with 2.33 as it seems.

I get:

Uncaught ReferenceError: global is not defined
    at buffer-es6.js:1:7655

and this comes from: node_modules\@microsoft\teams-js\dist\esm\node_modules\.pnpm\[email protected]\node_modules\rollup-plugin-node-polyfills\polyfills\buffer-es6.js

and this lib is stone-age old: https://www.npmjs.com/package/rollup-plugin-node-polyfills (last updated 6 years ago).

Kind regards

Copy link
Contributor

Hi electrocnic! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@noahdarveau-MSFT
Copy link
Contributor

noahdarveau-MSFT commented Jan 29, 2025

Hi @electrocnic, I just wanted to double check and clarify. You have a vite app, and using version 2.33.0 you still get the "global is not defined" error even with the config outlined in this comment? Also, I'd like to confirm, are you getting the error when you build, run the vite dev server, and/or running vite preview? Thanks!

@electrocnic
Copy link
Author

in this comment

Ahh, sorry, my bad!
Completely misunderstood the "resolution" of the previous ticket. I assumed it would now work without this vite config section.

I can confirm that it works with this config snippet, thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants