René's URL Explorer Experiment


Title: Polyfill is not defined when using `spago bundle-app` · Issue #34 · purescript-contrib/purescript-arraybuffer · GitHub

Open Graph Title: Polyfill is not defined when using `spago bundle-app` · Issue #34 · purescript-contrib/purescript-arraybuffer

X Title: Polyfill is not defined when using `spago bundle-app` · Issue #34 · purescript-contrib/purescript-arraybuffer

Description: Describe the bug polyFill function is not exported from Typed.js, but called at the top-level of Typed.js itself. This seems to cause issues with bundling, where the definition isn't picked up by the bundle, causing the top-level polyFil...

Open Graph Description: Describe the bug polyFill function is not exported from Typed.js, but called at the top-level of Typed.js itself. This seems to cause issues with bundling, where the definition isn't picked up by t...

X Description: Describe the bug polyFill function is not exported from Typed.js, but called at the top-level of Typed.js itself. This seems to cause issues with bundling, where the definition isn't picked up ...

Opengraph URL: https://github.com/purescript-contrib/purescript-arraybuffer/issues/34

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Polyfill is not defined when using `spago bundle-app`","articleBody":"**Describe the bug**\r\n`polyFill` function is not exported from `Typed.js`, but called at the top-level of `Typed.js` itself. This seems to cause issues with bundling, where the definition isn't picked up by the bundle, causing the top-level `polyFill()` call to report `Uncaught ReferenceError: polyFill is not defined`.\r\n\r\n**To Reproduce**\r\nInitialize a spago project via `spago init`. Add the following list of dependencies to `spago.dhall`:\r\n```\r\n  [ \"arraybuffer\"\r\n  , \"arraybuffer-types\"\r\n  , \"console\"\r\n  , \"effect\"\r\n  , \"prelude\"\r\n  , \"psci-support\"\r\n  ]\r\n```\r\n\r\nModify `src/Main.purs` to be as follows:\r\n```purescript\r\n-- src/Main.purs\r\nmodule Main where\r\n\r\nimport Prelude\r\n\r\nimport Data.ArrayBuffer.Types (ArrayView, Int32)\r\nimport Data.ArrayBuffer.Typed as ArrayBuffer\r\nimport Effect (Effect)\r\nimport Effect.Console (log)\r\n\r\nmain :: Effect Unit\r\nmain = do\r\n  _ :: ArrayView Int32 \u003c- ArrayBuffer.empty 0\r\n  log \"hello\"\r\n```\r\n\r\nBundle it and run it via `node`:\r\n```bash\r\n$ spago bundle-app\r\n$ node index.js\r\n```\r\n\r\n**Expected behavior**\r\nSee the output: `\"hello\"`.\r\n\r\n**Actual behavior**\r\n```\r\n\u003cpath-to-project>\\index.js:6\r\n  polyFill();\r\n  ^\r\n\r\nReferenceError: polyFill is not defined\r\n```\r\n\r\n\r\n**Additional context**\r\nRunning the bundle through browser or node does not make a difference, failing in both cases.\r\n","author":{"url":"https://github.com/ozkutuk","@type":"Person","name":"ozkutuk"},"datePublished":"2021-08-30T22:15:18Z","url":"https://github.com/purescript-contrib/purescript-arraybuffer/issues/34"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ecaaf689-7e93-2a28-7128-5fe1aef05579
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE9E8:2ADDC2:26FDC7:3557C4:6AFC021D
html-safe-nonce9fa764dfc96fd2ed2593ceadd349d15e8122e85fd9932610904008217325cbe1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUU4OjJBRERDMjoyNkZEQzc6MzU1N0M0OjZBRkMwMjFEIiwidmlzaXRvcl9pZCI6IjU1MDQyNzE5NDc2NTI2NjE3ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2ccbb790d35188b81e053ce1e44deca2f353e7f08cccf145e320cc2b3f81417c
hovercard-subject-tagissue:983252573
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript-contrib/purescript-arraybuffer/34/issue_layout
twitter:imagehttps://opengraph.githubassets.com/07df7ad9d81a215e34cce7b9f588ab6695e553a03c42bffbfd94d276debbd202/purescript-contrib/purescript-arraybuffer/issues/34
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/07df7ad9d81a215e34cce7b9f588ab6695e553a03c42bffbfd94d276debbd202/purescript-contrib/purescript-arraybuffer/issues/34
og:image:altDescribe the bug polyFill function is not exported from Typed.js, but called at the top-level of Typed.js itself. This seems to cause issues with bundling, where the definition isn't picked up by t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameozkutuk
hostnamegithub.com
expected-hostnamegithub.com
Nonefa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f
turbo-cache-controlno-preview
go-importgithub.com/purescript-contrib/purescript-arraybuffer git https://github.com/purescript-contrib/purescript-arraybuffer.git
octolytics-dimension-user_id7391813
octolytics-dimension-user_loginpurescript-contrib
octolytics-dimension-repository_id30353544
octolytics-dimension-repository_nwopurescript-contrib/purescript-arraybuffer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id30353544
octolytics-dimension-repository_network_root_nwopurescript-contrib/purescript-arraybuffer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb3b5633a74535d9c23385512d534c66c8fde1907
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/purescript-contrib/purescript-arraybuffer/issues/34#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-contrib%2Fpurescript-arraybuffer%2Fissues%2F34
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-contrib%2Fpurescript-arraybuffer%2Fissues%2F34
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=purescript-contrib%2Fpurescript-arraybuffer
Reloadhttps://github.com/purescript-contrib/purescript-arraybuffer/issues/34
Reloadhttps://github.com/purescript-contrib/purescript-arraybuffer/issues/34
Reloadhttps://github.com/purescript-contrib/purescript-arraybuffer/issues/34
purescript-contribhttps://github.com/purescript-contrib
purescript-arraybufferhttps://github.com/purescript-contrib/purescript-arraybuffer
Codehttps://github.com/purescript-contrib/purescript-arraybuffer
Issues4 (4)https://github.com/purescript-contrib/purescript-arraybuffer/issues
Pull requestshttps://github.com/purescript-contrib/purescript-arraybuffer/pulls
Actionshttps://github.com/purescript-contrib/purescript-arraybuffer/actions
Wikihttps://github.com/purescript-contrib/purescript-arraybuffer/wiki
Security and qualityhttps://github.com/purescript-contrib/purescript-arraybuffer/security
Insightshttps://github.com/purescript-contrib/purescript-arraybuffer/pulse
https://github.com/purescript-contrib/purescript-arraybuffer
New issuehttps://github.com/login?return_to=https://github.com/purescript-contrib/purescript-arraybuffer/issues/34
New issuehttps://github.com/login?return_to=https://github.com/purescript-contrib/purescript-arraybuffer/issues/34
#36https://github.com/purescript-contrib/purescript-arraybuffer/pull/36
Polyfill is not defined when using spago bundle-apphttps://github.com/purescript-contrib/purescript-arraybuffer/issues/34#top
#36https://github.com/purescript-contrib/purescript-arraybuffer/pull/36
bughttps://github.com/purescript-contrib/purescript-arraybuffer/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/ozkutuk
ozkutukhttps://github.com/ozkutuk
on Aug 30, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issue-983252573
ozkutukhttps://github.com/ozkutuk
bughttps://github.com/purescript-contrib/purescript-arraybuffer/issues?q=state%3Aopen%20label%3A%22bug%22
on Aug 30, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#event-5228948690
https://github.com/JordanMartinez
JordanMartinezhttps://github.com/JordanMartinez
on Aug 31, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-908797794
https://github.com/jamesdbrock
jamesdbrockhttps://github.com/jamesdbrock
on Aug 31, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-908895645
@ozkutukhttps://github.com/ozkutuk
https://github.com/jamesdbrock
jamesdbrockhttps://github.com/jamesdbrock
on Aug 31, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-908960069
purescript-arraybuffer/src/Data/ArrayBuffer/Typed.jshttps://github.com/purescript-contrib/purescript-arraybuffer/blob/20f4de11f92ebb7fa78cd4ca67b2d4b707721637/src/Data/ArrayBuffer/Typed.js#L20
20f4de1https://github.com/purescript-contrib/purescript-arraybuffer/commit/20f4de11f92ebb7fa78cd4ca67b2d4b707721637
https://github.com/JordanMartinez
JordanMartinezhttps://github.com/JordanMartinez
on Aug 31, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-909291123
purescript/purescript#4044https://github.com/purescript/purescript/pull/4044
https://github.com/jamesdbrock
jamesdbrockhttps://github.com/jamesdbrock
on Aug 31, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-909344301
@JordanMartinezhttps://github.com/JordanMartinez
purescript/purescript#4044https://github.com/purescript/purescript/pull/4044
@ozkutukhttps://github.com/ozkutuk
https://github.com/ozkutuk
ozkutukhttps://github.com/ozkutuk
on Aug 31, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-909389797
https://github.com/ozkutuk
ozkutukhttps://github.com/ozkutuk
on Aug 31, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-909394776
@jamesdbrockhttps://github.com/jamesdbrock
purescript/purescript#4044https://github.com/purescript/purescript/pull/4044
https://github.com/ozkutuk
ozkutukhttps://github.com/ozkutuk
on Aug 31, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-909615292
purescript/purescript#4044https://github.com/purescript/purescript/pull/4044
purescript/purescript#4044https://github.com/purescript/purescript/pull/4044
TypedArrays are supported since IE10https://caniuse.com/mdn-javascript_builtins_typedarray
https://github.com/jamesdbrock
jamesdbrockhttps://github.com/jamesdbrock
on Sep 1, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-910039421
purescript/purescript#4044https://github.com/purescript/purescript/pull/4044
https://github.com/purescript/purescript/blob/master/CHANGELOG.md#v0144https://github.com/purescript/purescript/blob/master/CHANGELOG.md#v0144
Add support for bundling function declarations purescript/purescript#4044https://github.com/purescript/purescript/pull/4044
https://github.com/JordanMartinez
JordanMartinezhttps://github.com/JordanMartinez
on Sep 1, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-910351922
https://github.com/jamesdbrock
jamesdbrockhttps://github.com/jamesdbrock
on Sep 8, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-915289229
https://github.com/jamesdbrock
jamesdbrockhttps://github.com/jamesdbrock
on Sep 8, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-915332229
5200641https://github.com/purescript-contrib/purescript-arraybuffer/commit/5200641bdc89e8c821519c6407ff50f067eec17d
f224bbfhttps://github.com/purescript-contrib/purescript-arraybuffer/commit/f224bbf120f3c858a65585f8dc1accac23087be6
#23 (comment)https://github.com/purescript-contrib/purescript-arraybuffer/pull/23#discussion_r252455058
https://github.com/jamesdbrock
jamesdbrockhttps://github.com/jamesdbrock
on Sep 21, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-923609550
jamesdbrockhttps://github.com/jamesdbrock
on Sep 21, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#event-5332834688
Delete the TypedArray polyfillhttps://github.com/purescript-contrib/purescript-arraybuffer/commit/9c3c3e9256cde47e7b2978808b5e0cbbad19714a
9c3c3e9https://github.com/purescript-contrib/purescript-arraybuffer/commit/9c3c3e9256cde47e7b2978808b5e0cbbad19714a
Delete the TypedArray polyfillhttps://github.com/purescript-contrib/purescript-arraybuffer/commit/0392a0f4e439f19b63999cb8420095118e4cfe17
0392a0fhttps://github.com/purescript-contrib/purescript-arraybuffer/commit/0392a0f4e439f19b63999cb8420095118e4cfe17
https://github.com/JordanMartinez
JordanMartinezhttps://github.com/JordanMartinez
on Sep 21, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-924033796
https://caniuse.com/mdn-javascript_builtins_typedarrayhttps://caniuse.com/mdn-javascript_builtins_typedarray
https://github.com/JordanMartinez
JordanMartinezhttps://github.com/JordanMartinez
on Sep 21, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-924034745
https://caniuse.com/?search=typedarrayhttps://caniuse.com/?search=typedarray
https://github.com/JordanMartinez
JordanMartinezhttps://github.com/JordanMartinez
on Sep 21, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-924041487
jamesdbrockhttps://github.com/jamesdbrock
on Sep 21, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#event-5336841303
Delete the TypedArray polyfillhttps://github.com/purescript-contrib/purescript-arraybuffer/commit/3e8cb28b8372adf74bca220451fdad6008cabe9a
3e8cb28https://github.com/purescript-contrib/purescript-arraybuffer/commit/3e8cb28b8372adf74bca220451fdad6008cabe9a
jamesdbrockhttps://github.com/jamesdbrock
completedhttps://github.com/purescript-contrib/purescript-arraybuffer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#36https://github.com/purescript-contrib/purescript-arraybuffer/pull/36
on Sep 21, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#event-5336847994
https://github.com/jamesdbrock
jamesdbrockhttps://github.com/jamesdbrock
on Sep 21, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-924144806
@ozkutukhttps://github.com/ozkutuk
https://github.com/JordanMartinez
JordanMartinezhttps://github.com/JordanMartinez
on Sep 21, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-924147597
@jamesdbrockhttps://github.com/jamesdbrock
https://github.com/jamesdbrock
jamesdbrockhttps://github.com/jamesdbrock
on Sep 21, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-924150761
@jamesdbrockhttps://github.com/jamesdbrock
https://github.com/JordanMartinez
JordanMartinezhttps://github.com/JordanMartinez
on Sep 22, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-924556176
https://github.com/jamesdbrock
jamesdbrockhttps://github.com/jamesdbrock
on Sep 22, 2021https://github.com/purescript-contrib/purescript-arraybuffer/issues/34#issuecomment-924917460
Sign up for freehttps://github.com/signup?return_to=https://github.com/purescript-contrib/purescript-arraybuffer/issues/34
Sign in to commenthttps://github.com/login?return_to=https://github.com/purescript-contrib/purescript-arraybuffer/issues/34
bughttps://github.com/purescript-contrib/purescript-arraybuffer/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.