René's URL Explorer Experiment


Title: __WEBPACK_IMPORTED_MODULE_4_moment__ is not a function when trying to use moment.js with typings · Issue #1974 · angular/angular-cli · GitHub

Open Graph Title: __WEBPACK_IMPORTED_MODULE_4_moment__ is not a function when trying to use moment.js with typings · Issue #1974 · angular/angular-cli

X Title: __WEBPACK_IMPORTED_MODULE_4_moment__ is not a function when trying to use moment.js with typings · Issue #1974 · angular/angular-cli

Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Ubuntu 14.04 Versions. Please run ng --version. If there's nothing outputted, please run in a Terminal:...

Open Graph Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Ubuntu 14.04 Versions. Please run ng --version. If there's noth...

X Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Ubuntu 14.04 Versions. Please run ng --version. If there's ...

Opengraph URL: https://github.com/angular/angular-cli/issues/1974

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"__WEBPACK_IMPORTED_MODULE_4_moment__ is not a function when trying to use moment.js with typings","articleBody":"> ## Please provide us with the following information:\n1. OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\n   Ubuntu 14.04\n2. Versions. Please run `ng --version`. If there's nothing outputted, please run\n   in a Terminal: `node --version` and paste the result here:\n\n```\nangular-cli: 1.0.0-beta.11-webpack.8\nnode: 6.3.1\nos: linux x64\n```\n1. Repro steps. Was this an app that wasn't created using the CLI? What change did you\n   do on your code? etc.\n   This is a project done from the start with angular cli.\n\n1) Install moment:\n\n```\nnpm install moment --save\ntypings install dt~moment --global --save\n```\n\n2)\nInclude in ts file:\n`import * as moment from 'moment'`\nand call any method:\n`moment().calendar()`\n1. The log given by the failure. Normally this include a stack trace and some\n   more information.\n\n```\noffers.service.ts:21 __WEBPACK_IMPORTED_MODULE_4_moment__ is not a function\nOffersService.handleError @ offers.service.ts:21\nZoneDelegate.invoke @ zone.js:323\nNgZoneImpl.inner.inner.fork.onInvoke @ ng_zone_impl.js:53\nZoneDelegate.invoke @ zone.js:322\nZone.run @ zone.js:216\n(anonymous function) @ zone.js:571\nZoneDelegate.invokeTask @ zone.js:356\nNgZoneImpl.inner.inner.fork.onInvokeTask @ ng_zone_impl.js:44\nZoneDelegate.invokeTask @ zone.js:355\nZone.runTask @ zone.js:256\ndrainMicroTaskQueue @ zone.js:474\nZoneTask.invoke @ zone.js:426\n```\n1. Mention any other details that might be useful.\n\nIf I leave `import * as moment from 'moment'` in the component, the component wont run at all. If I remove it, the component works properly but I get `client?93b6:49 [default] /home/alejo/projects/ng-backend/src/app/services/offers/offers.service.ts:37:31 \nCannot find name 'moment'.` when serving the app.\n\n> ---\n> \n> Thanks! We'll be in touch soon.\n","author":{"url":"https://github.com/alejoar","@type":"Person","name":"alejoar"},"datePublished":"2016-09-04T23:44:50Z","url":"https://github.com/angular/angular-cli/issues/1974"}

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:e991f131-14b6-bfce-3451-f18154219c29
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD322:20AA01:480346B:5B42315:6B022F67
html-safe-noncee8b4aa9915e513c3e3415a483944c4342abf7d33a0f316a70f3326409b5b86fa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzIyOjIwQUEwMTo0ODAzNDZCOjVCNDIzMTU6NkIwMjJGNjciLCJ2aXNpdG9yX2lkIjoiNDE2MjE2MjE3NTk0OTAyNTEyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4462bd13e26aadb421042309ba5c6b724e53e07aef722b8ccd47be7711b5e705
hovercard-subject-tagissue:174976123
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/angular/angular-cli/1974/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5e3f143fc800dc3f4769020152f391473ade87d3bda0678bf64deac578d3dad0/angular/angular-cli/issues/1974
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5e3f143fc800dc3f4769020152f391473ade87d3bda0678bf64deac578d3dad0/angular/angular-cli/issues/1974
og:image:altPlease provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Ubuntu 14.04 Versions. Please run ng --version. If there's noth...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealejoar
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/1974#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F1974
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%2Fangular%2Fangular-cli%2Fissues%2F1974
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=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/1974
Reloadhttps://github.com/angular/angular-cli/issues/1974
Reloadhttps://github.com/angular/angular-cli/issues/1974
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/1974
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/1974
__WEBPACK_IMPORTED_MODULE_4_moment__ is not a function when trying to use moment.js with typingshttps://github.com/angular/angular-cli/issues/1974#top
https://github.com/alejoar
alejoarhttps://github.com/alejoar
on Sep 4, 2016https://github.com/angular/angular-cli/issues/1974#issue-174976123
https://github.com/rodikal
rodikalhttps://github.com/rodikal
on Sep 6, 2016https://github.com/angular/angular-cli/issues/1974#issuecomment-244890390
3rd party library installationhttps://github.com/angular/angular-cli#3rd-party-library-installation
https://github.com/alejoar
alejoarhttps://github.com/alejoar
on Sep 7, 2016https://github.com/angular/angular-cli/issues/1974#issuecomment-245212524
@rodikalhttps://github.com/rodikal
https://github.com/rodikal
rodikalhttps://github.com/rodikal
on Sep 8, 2016https://github.com/angular/angular-cli/issues/1974#issuecomment-245673131
@alejoarhttps://github.com/alejoar
https://github.com/rodikal/moment-testhttps://github.com/rodikal/moment-test
https://github.com/MrChoclate
MrChoclatehttps://github.com/MrChoclate
on Sep 14, 2016https://github.com/angular/angular-cli/issues/1974#issuecomment-247003024
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Sep 21, 2016https://github.com/angular/angular-cli/issues/1974#issuecomment-248504772
#2141https://github.com/angular/angular-cli/issues/2141
filipesilvahttps://github.com/filipesilva
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 21, 2016https://github.com/angular/angular-cli/issues/1974#event-796708646
https://github.com/Sabrinsulthana
Sabrinsulthanahttps://github.com/Sabrinsulthana
on Aug 14, 2018https://github.com/angular/angular-cli/issues/1974#issuecomment-412854355
https://github.com/Vishnu4a7
Vishnu4a7https://github.com/Vishnu4a7
on May 13, 2019https://github.com/angular/angular-cli/issues/1974#issuecomment-491709154
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 9, 2019https://github.com/angular/angular-cli/issues/1974#issuecomment-529480267
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 9, 2019https://github.com/angular/angular-cli/issues/1974#event-2618730018
clydinhttps://github.com/clydin
on Aug 29, 2023https://github.com/angular/angular-cli/issues/1974#event-10224447126
fix(@nguniversal/common-engine): ReferenceError: URL is not definedhttps://github.com/clydin/angular-cli/commit/09207adcaf8265adf784dd16db827d400e821159
https://docs.github.com/articles/closing-issues-via-commit-messages
09207adhttps://github.com/clydin/angular-cli/commit/09207adcaf8265adf784dd16db827d400e821159
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/1974
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/1974
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.