Title: No support for Webpack resolve.alias · Issue #5287 · angular/angular-cli · GitHub
Open Graph Title: No support for Webpack resolve.alias · Issue #5287 · angular/angular-cli
X Title: No support for Webpack resolve.alias · Issue #5287 · angular/angular-cli
Description: Hello, It's a copy of issue #5031, it was closed as already implemented but I couldn't manage to make it work. Steps to reproduce: I've added this to my tsconfig.json: "compilerOptions": { "baseUrl": "src", "paths": { "shared/*": ["app/s...
Open Graph Description: Hello, It's a copy of issue #5031, it was closed as already implemented but I couldn't manage to make it work. Steps to reproduce: I've added this to my tsconfig.json: "compilerOptions": { "baseUrl...
X Description: Hello, It's a copy of issue #5031, it was closed as already implemented but I couldn't manage to make it work. Steps to reproduce: I've added this to my tsconfig.json: "compilerOpt...
Opengraph URL: https://github.com/angular/angular-cli/issues/5287
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No support for Webpack resolve.alias ","articleBody":"Hello,\r\n\r\nIt's a copy of issue #5031, it was closed as already implemented but I couldn't manage to make it work.\r\n\r\n**Steps to reproduce:**\r\n\r\nI've added this to my tsconfig.json:\r\n```\r\n\"compilerOptions\": {\r\n \"baseUrl\": \"src\",\r\n \"paths\": {\r\n \"shared/*\": [\"app/shared/*\"]\r\n }\r\n}\r\n```\r\n\r\nPath to the constants file: `src/app/shared/constants/index.ts`\r\n\r\nWhen I import it as usual `import { testConst } from './shared/constants/index';`, it works fine:\r\n\r\nBut when I use absolute path, it crashes:\r\n`import { testConst } from 'shared/constants/index';`\r\n\r\nWebpack error:\r\n```\r\nERROR in C:/Projects/myProject/UI/src/app/app.component.ts (2,27): Cannot find module 'shared/constants/index'.)\r\nERROR in ./src/app/app.component.ts\r\nModule not found: Error: Can't resolve 'shared/constants/index' in 'C:\\Projects\\myProject\\UI\\src\\app'\r\n```\r\n\r\nCould someone confirm that this feature works? Does it need additional config?","author":{"url":"https://github.com/andrii-oleksyshyn","@type":"Person","name":"andrii-oleksyshyn"},"datePublished":"2017-03-07T18:23:21Z","url":"https://github.com/angular/angular-cli/issues/5287"}
| 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:08834d2f-fa00-d7ac-80ea-4ab3ef5af139 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7F2:313081:19BC5D5:21EC149:6B020F53 |
| html-safe-nonce | 065930f36215cc8d1c655a2dee5187e94cf59421abb5ef676bfa115fd7843940 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0YyOjMxMzA4MToxOUJDNUQ1OjIxRUMxNDk6NkIwMjBGNTMiLCJ2aXNpdG9yX2lkIjoiMjk2MzQ2ODY5NzA0MDM2MTc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0dfe86d1c8bbe8e1f1086f720d432c0d43771db600a006bd0996fb8fe1a426de |
| hovercard-subject-tag | issue:212517432 |
| 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/angular/angular-cli/5287/issue_layout |
| twitter:image | https://opengraph.githubassets.com/afaef9a6b5e39007023d658d19776b8cebbd2538bb033228a245356907307e17/angular/angular-cli/issues/5287 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/afaef9a6b5e39007023d658d19776b8cebbd2538bb033228a245356907307e17/angular/angular-cli/issues/5287 |
| og:image:alt | Hello, It's a copy of issue #5031, it was closed as already implemented but I couldn't manage to make it work. Steps to reproduce: I've added this to my tsconfig.json: "compilerOptions": { "baseUrl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andrii-oleksyshyn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width