René's URL Explorer Experiment


Title: [Reproducible] Can't resolve tilde ("~") included path · Issue #298 · NativeScript/nativescript-dev-webpack · GitHub

Open Graph Title: [Reproducible] Can't resolve tilde ("~") included path · Issue #298 · NativeScript/nativescript-dev-webpack

X Title: [Reproducible] Can't resolve tilde ("~") included path · Issue #298 · NativeScript/nativescript-dev-webpack

Description: Create an app by tns create MY_PROJECT --template tns-template-hello-world-ng, setup nativescript-dev-webpack, and simply change this line from import { ItemsComponent } from "./item/items.component"; to import { ItemsComponent } from "~...

Open Graph Description: Create an app by tns create MY_PROJECT --template tns-template-hello-world-ng, setup nativescript-dev-webpack, and simply change this line from import { ItemsComponent } from "./item/items.componen...

X Description: Create an app by tns create MY_PROJECT --template tns-template-hello-world-ng, setup nativescript-dev-webpack, and simply change this line from import { ItemsComponent } from "./item/items.com...

Opengraph URL: https://github.com/NativeScript/nativescript-dev-webpack/issues/298

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Reproducible] Can't resolve tilde (\"~\") included path","articleBody":"Create an app by `tns create MY_PROJECT --template tns-template-hello-world-ng`, setup `nativescript-dev-webpack`, and simply change [this line](https://github.com/NativeScript/template-hello-world-ng/blob/master/app.routing.ts#L5) from \r\n\r\n```\r\nimport { ItemsComponent } from \"./item/items.component\";\r\n```\r\n\r\nto \r\n\r\n```\r\nimport { ItemsComponent } from \"~/item/items.component\";\r\n```\r\n\r\nand run `npm run start-android-bundle`, then get the following error.\r\n\r\n```\r\nERROR in Error encountered resolving symbol values statically. \r\n\r\nCould not resolve ~/item/items.component relative to /MY_PROJECT/app/app.routing.ts., \r\nresolving symbol AppRoutingModule in /MY_PROJECT/app/app.routing.ts,\r\nresolving symbol AppRoutingModule in /MY_PROJECT/app/app.routing.ts,\r\nresolving symbol AppRoutingModule in /MY_PROJECT/app/app.routing.ts\r\n\r\n\r\nERROR in ./main.aot.ts\r\nModule not found: Error: Can't resolve './app.module.ngfactory' in '/MY_PROJECT/app'\r\n @ ./main.aot.ts 5:29-62\r\n```\r\n\r\nThe same code builds and works successfully when running `tns run android`, so guess it's webpack's problem?\r\n\r\nHere's the relative looking infos\r\n\r\npackage.json\r\n```\r\n  \"nativescript\": {\r\n    \"tns-android\": {\r\n      \"version\": \"3.2.0\"\r\n    }\r\n  },\r\n  \"dependencies\": {\r\n    \"@angular/animations\": \"~4.4.1\",\r\n    \"@angular/common\": \"~4.4.1\",\r\n    \"@angular/compiler\": \"~4.4.1\",\r\n    \"@angular/core\": \"~4.4.1\",\r\n    \"@angular/forms\": \"~4.4.1\",\r\n    \"@angular/http\": \"~4.4.1\",\r\n    \"@angular/platform-browser\": \"~4.4.1\",\r\n    \"@angular/router\": \"~4.4.1\",\r\n    \"nativescript-angular\": \"~4.4.1\",\r\n    ....\r\n},\r\n  \"devDependencies\": {\r\n    \"@angular/compiler-cli\": \"~4.4.1\",\r\n    \"@ngtools/webpack\": \"~1.6.0\",\r\n    \"babel-traverse\": \"6.26.0\",\r\n    \"babel-types\": \"6.26.0\",\r\n    \"babylon\": \"6.18.0\",\r\n    \"copy-webpack-plugin\": \"~4.0.1\",\r\n    \"extract-text-webpack-plugin\": \"~3.0.0\",\r\n    \"lazy\": \"1.0.11\",\r\n    \"nativescript-css-loader\": \"~0.26.0\",\r\n    \"nativescript-dev-typescript\": \"~0.5.0\",\r\n    \"nativescript-dev-webpack\": \"^0.8.0\",\r\n    \"nativescript-worker-loader\": \"~0.8.1\",\r\n    \"raw-loader\": \"~0.5.1\",\r\n    \"resolve-url-loader\": \"~2.1.0\",\r\n    \"typescript\": \"~2.4.2\",\r\n    \"webpack\": \"~3.2.0\",\r\n    \"webpack-bundle-analyzer\": \"^2.8.2\",\r\n    \"webpack-sources\": \"~1.0.1\"\r\n  },\r\n\r\n```\r\n\r\ntsconfig.json\r\n```\r\n{\r\n    \"compilerOptions\": {\r\n       ...\r\n        \"paths\": {\r\n            \"~/*\": [ \"./app/*\" ],\r\n            \"*\": [\r\n                \"./node_modules/tns-core-modules/*\",\r\n                \"./node_modules/*\"\r\n            ]\r\n        }\r\n      ...\r\n```\r\n\r\nwebpack.config.js\r\n```\r\n        ...\r\n        resolve: {\r\n           ...\r\n            alias: {\r\n                '~': resolve(\"./app\")\r\n            },\r\n        }\r\n       ...\r\n```\r\nAnybody knows why?","author":{"url":"https://github.com/Liooo","@type":"Person","name":"Liooo"},"datePublished":"2017-10-20T09:20:00Z","url":"https://github.com/NativeScript/nativescript-dev-webpack/issues/298"}

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:b5872106-888b-7b71-1f7b-1b3cc01839aa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B0E:269AD9:1BDE46F:253091E:6B01613C
html-safe-noncefa69d18c60460c381dcc48fd85eb66658fced80c78950b5ed42bcf83559b0280
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjBFOjI2OUFEOToxQkRFNDZGOjI1MzA5MUU6NkIwMTYxM0MiLCJ2aXNpdG9yX2lkIjoiNDA4MTc4Nzc5ODY0OTEzNTQyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac96819bb6f89ce7ba93f8b61cfe3b1fc9978565649edfeb3af0b1a334240ff001
hovercard-subject-tagissue:267113635
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/NativeScript/nativescript-dev-webpack/298/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2f3c6799b9b896ed2976d8db4c80fb5b9624ae123f34e02c258a0dbc573c380e/NativeScript/nativescript-dev-webpack/issues/298
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2f3c6799b9b896ed2976d8db4c80fb5b9624ae123f34e02c258a0dbc573c380e/NativeScript/nativescript-dev-webpack/issues/298
og:image:altCreate an app by tns create MY_PROJECT --template tns-template-hello-world-ng, setup nativescript-dev-webpack, and simply change this line from import { ItemsComponent } from "./item/items.componen...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLiooo
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/nativescript-dev-webpack git https://github.com/NativeScript/nativescript-dev-webpack.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id54984270
octolytics-dimension-repository_nwoNativeScript/nativescript-dev-webpack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id54984270
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-dev-webpack
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/nativescript-dev-webpack/issues/298#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-dev-webpack%2Fissues%2F298
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%2FNativeScript%2Fnativescript-dev-webpack%2Fissues%2F298
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=NativeScript%2Fnativescript-dev-webpack
Reloadhttps://github.com/NativeScript/nativescript-dev-webpack/issues/298
Reloadhttps://github.com/NativeScript/nativescript-dev-webpack/issues/298
Reloadhttps://github.com/NativeScript/nativescript-dev-webpack/issues/298
NativeScripthttps://github.com/NativeScript
nativescript-dev-webpackhttps://github.com/NativeScript/nativescript-dev-webpack
Codehttps://github.com/NativeScript/nativescript-dev-webpack
Issues82 (82)https://github.com/NativeScript/nativescript-dev-webpack/issues
Pull requests3 (3)https://github.com/NativeScript/nativescript-dev-webpack/pulls
Actionshttps://github.com/NativeScript/nativescript-dev-webpack/actions
Security and qualityhttps://github.com/NativeScript/nativescript-dev-webpack/security
Insightshttps://github.com/NativeScript/nativescript-dev-webpack/insights
https://github.com/NativeScript/nativescript-dev-webpack
[Reproducible] Can't resolve tilde ("~") included pathhttps://github.com/NativeScript/nativescript-dev-webpack/issues/298#top
backloghttps://github.com/NativeScript/nativescript-dev-webpack/issues?q=state%3Aopen%20label%3A%22backlog%22
bughttps://github.com/NativeScript/nativescript-dev-webpack/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/Liooo
Liooohttps://github.com/Liooo
on Oct 20, 2017https://github.com/NativeScript/nativescript-dev-webpack/issues/298#issue-267113635
this linehttps://github.com/NativeScript/template-hello-world-ng/blob/master/app.routing.ts#L5
https://github.com/NickIliev
NickIlievhttps://github.com/NickIliev
on Oct 23, 2017https://github.com/NativeScript/nativescript-dev-webpack/issues/298#issuecomment-338672043
this sample applicationhttps://github.com/NickIliev/NS-Issues/tree/master/nativescript-dev-webpack/issue_298
herehttps://github.com/NickIliev/NS-Issues/blob/master/nativescript-dev-webpack/issue_298/app/app.routing.ts#L5-L6
NickIlievhttps://github.com/NickIliev
bughttps://github.com/NativeScript/nativescript-dev-webpack/issues?q=state%3Aopen%20label%3A%22bug%22
on Jan 9, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/298#event-1415892374
tsonevnhttps://github.com/tsonevn
NickIlievhttps://github.com/NickIliev
on Feb 6, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/298#event-1459645283
NickIlievhttps://github.com/NickIliev
on Mar 30, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/298#event-1549362806
sis0k0https://github.com/sis0k0
backloghttps://github.com/NativeScript/nativescript-dev-webpack/issues?q=state%3Aopen%20label%3A%22backlog%22
on Aug 21, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/298#event-1799480745
https://github.com/geocine
geocinehttps://github.com/geocine
on Jan 11, 2019https://github.com/NativeScript/nativescript-dev-webpack/issues/298#issuecomment-453447017
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/nativescript-dev-webpack/issues/298
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-dev-webpack/issues/298
backloghttps://github.com/NativeScript/nativescript-dev-webpack/issues?q=state%3Aopen%20label%3A%22backlog%22
bughttps://github.com/NativeScript/nativescript-dev-webpack/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.