Title: Javascript function in React doesn't work after build in Prod. · Issue #732 · python-eel/Eel · GitHub
Open Graph Title: Javascript function in React doesn't work after build in Prod. · Issue #732 · python-eel/Eel
X Title: Javascript function in React doesn't work after build in Prod. · Issue #732 · python-eel/Eel
Description: Eel version Please state the version of Eel you're using. 0.16.0 Describe the bug A clear and concise description of what the bug is. AttributeError: module 'eel' has no attribute 'getEmailsPortal' eel.expose(getEmailsPortal) function ge...
Open Graph Description: Eel version Please state the version of Eel you're using. 0.16.0 Describe the bug A clear and concise description of what the bug is. AttributeError: module 'eel' has no attribute 'getEmailsPortal'...
X Description: Eel version Please state the version of Eel you're using. 0.16.0 Describe the bug A clear and concise description of what the bug is. AttributeError: module 'eel' has no attribute '...
Opengraph URL: https://github.com/python-eel/Eel/issues/732
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Javascript function in React doesn't work after build in Prod.","articleBody":"**Eel version**\r\nPlease state the version of Eel you're using.\r\n0.16.0\r\n\r\n**Describe the bug**\r\nA clear and concise description of what the bug is.\r\n\r\nAttributeError: module 'eel' has no attribute 'getEmailsPortal'\r\neel.expose(getEmailsPortal)\r\nfunction getEmailsPortal(){\r\n getEmails()\r\n}\r\nWorks fine in debug mode with this config:\r\neel.init('client/src/api', allowed_extensions=['.ts'])\r\neel_kwargs = dict(\r\n host='localhost',\r\n port=8899,\r\n)\r\neel.start({'port': 3000}, geometry={'size': (1280, 800), 'position': (50, 50)}, **eel_kwargs)\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Go to '...'\r\n2. Click on '....'\r\n3. Scroll down to '....'\r\n4. See error\r\n\r\nnpm run build on application and package with pyinstaller\r\n\r\n**Expected behavior**\r\nA clear and concise description of what you expected to happen.\r\n\r\nAbility to run javascript function from python in production like how it works in debug.\r\n\r\n**System Information**\r\n - OS: [e.g. Windows 10 x64, Linux Ubuntu, macOS 12]\r\nMacOS Sonoma 14\r\n - Browser: [e.g. Chrome 108.0.5359.99 (Official Build) (64-bit), Safari 16, Firefox 107.0.1]\r\n Chrome \r\n - Python Distribution: [e.g. Python.org 3.9, Anaconda3 2021.11 3.9, ActivePython 3.9]\r\n Python 3.12.3\r\n\r\n**Screenshots**\r\nIf applicable, add screenshots to help explain your problem.\r\n\r\n**Additional context**\r\nAdd any other context about the problem here.\r\n","author":{"url":"https://github.com/kinga112","@type":"Person","name":"kinga112"},"datePublished":"2024-06-02T15:58:38Z","url":"https://github.com/python-eel/Eel/issues/732"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1da342af-f0d0-f6d7-01f5-4b02b5268eff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81B6:5C152:3B1E:49F6:6AFDF941 |
| html-safe-nonce | 9a6a95b24fc74010ec93cebcac1d56bda817510c000150b9c6828da9506f8a62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUI2OjVDMTUyOjNCMUU6NDlGNjo2QUZERjk0MSIsInZpc2l0b3JfaWQiOiI0MTUxODMwMjA2OTE2NDU4ODE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5e0111d465355999092bcfbeafae39f2035c615451e3c428e88eaaa979cd59c0 |
| hovercard-subject-tag | issue:2329732037 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-eel/Eel/732/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ae218567bd9ec0005bce6102fd294d5aa52283d03d68eb4b7338dcd02920555/python-eel/Eel/issues/732 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ae218567bd9ec0005bce6102fd294d5aa52283d03d68eb4b7338dcd02920555/python-eel/Eel/issues/732 |
| og:image:alt | Eel version Please state the version of Eel you're using. 0.16.0 Describe the bug A clear and concise description of what the bug is. AttributeError: module 'eel' has no attribute 'getEmailsPortal'... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kinga112 |
| hostname | github.com |
| expected-hostname | github.com |
| None | ee3343385a977757dd145b28fabf4a119780f2615a5a36c5a89f66c9b3b5616d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-eel/Eel git https://github.com/python-eel/Eel.git |
| octolytics-dimension-user_id | 114726397 |
| octolytics-dimension-user_login | python-eel |
| octolytics-dimension-repository_id | 115559503 |
| octolytics-dimension-repository_nwo | python-eel/Eel |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 115559503 |
| octolytics-dimension-repository_network_root_nwo | python-eel/Eel |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 43ae91995f6e2d5ff7a491f3de438f1f723adeaa |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width