Title: Bug after create new project · Issue #1158 · NativeScript/nativescript-dev-webpack · GitHub
Open Graph Title: Bug after create new project · Issue #1158 · NativeScript/nativescript-dev-webpack
X Title: Bug after create new project · Issue #1158 · NativeScript/nativescript-dev-webpack
Description: I created a new project by ns create command After ns run i got an error node_modules@ngtools\webpack\src\ivy\plugin.js:35 const mainFields = (_c = (_b = (_a = webpackOptions.resolve) === null || _a === void 0 ? void 0 : _a.mainFields) =...
Open Graph Description: I created a new project by ns create command After ns run i got an error node_modules@ngtools\webpack\src\ivy\plugin.js:35 const mainFields = (_c = (_b = (_a = webpackOptions.resolve) === null || _...
X Description: I created a new project by ns create command After ns run i got an error node_modules@ngtools\webpack\src\ivy\plugin.js:35 const mainFields = (_c = (_b = (_a = webpackOptions.resolve) === null || _...
Opengraph URL: https://github.com/NativeScript/nativescript-dev-webpack/issues/1158
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug after create new project","articleBody":"I created a new project by `ns create` command\r\nAfter `ns run` i got an error\r\nnode_modules\\@ngtools\\webpack\\src\\ivy\\plugin.js:35\r\n```\r\n const mainFields = (_c = (_b = (_a = webpackOptions.resolve) === null || _a === void 0 ? void 0 : _a.mainFields) === null || _b === void 0 ? void 0 : _b.flat()) !== null \u0026\u0026 _c !== void 0 ? _c : [];\r\n ^\r\nTypeError: _b.flat is not a function\r\n at initializeNgccProcessor (D:\\project-test\\node_modules\\@ngtools\\webpack\\src\\ivy\\plugin.js:35:158)\r\n at compiler.hooks.thisCompilation.tap (D:\\project-test\\node_modules\\@ngtools\\webpack\\src\\ivy\\plugin.js:109:57)\r\n at Hook.eval [as call] (eval at create (D:\\project-test\\node_modules\\webpack\\node_modules\\tapable\\lib\\HookCodeFactory.js:19:10), \u003canonymous\u003e:9:1)\r\n at Hook.CALL_DELEGATE [as _call] (D:\\project-test\\node_modules\\webpack\\node_modules\\tapable\\lib\\Hook.js:14:14)\r\n at Compiler.newCompilation (D:\\project-test\\node_modules\\webpack\\lib\\Compiler.js:1043:30)\r\n at hooks.beforeCompile.callAsync.err (D:\\project-test\\node_modules\\webpack\\lib\\Compiler.js:1088:29)\r\n at Hook.eval [as callAsync] (eval at create (D:\\project-test\\node_modules\\webpack\\node_modules\\tapable\\lib\\HookCodeFactory.js:33:10), \u003canonymous\u003e:6:1)\r\n at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (D:\\project-test\\node_modules\\webpack\\node_modules\\tapable\\lib\\Hook.js:18:14)\r\n at Compiler.compile (D:\\project-test\\node_modules\\webpack\\lib\\Compiler.js:1083:28)\r\n at compiler.hooks.watchRun.callAsync.err (D:\\project-test\\node_modules\\webpack\\lib\\Watching.js:200:19)\r\n at eval (eval at create (D:\\project-test\\node_modules\\webpack\\node_modules\\tapable\\lib\\HookCodeFactory.js:33:10), \u003canonymous\u003e:11:1)\r\n at D:\\project-test\\node_modules\\@nativescript\\webpack\\dist\\plugins\\WatchStatePlugin.js:22:13\r\n at Hook.eval [as callAsync] (eval at create (D:\\project-test\\node_modules\\webpack\\node_modules\\tapable\\lib\\HookCodeFactory.js:33:10), \u003canonymous\u003e:7:1)\r\n at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (D:\\project-test\\node_modules\\webpack\\node_modules\\tapable\\lib\\Hook.js:18:14)\r\n at run (D:\\project-test\\node_modules\\webpack\\lib\\Watching.js:154:33)\r\n at compiler.readRecords.err (D:\\project-test\\node_modules\\webpack\\lib\\Watching.js:149:6)\r\nExecuting webpack failed with exit code 1.\r\n```\r\n","author":{"url":"https://github.com/PetroSuch","@type":"Person","name":"PetroSuch"},"datePublished":"2021-08-02T08:56:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1158/nativescript-dev-webpack/issues/1158"}
| 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:1814260e-3569-ef60-e9fd-656452f493f0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99B6:14AB50:8061ED4:A615054:6975C766 |
| html-safe-nonce | 64da99d81c99a99a7fb87094c9e37008d77ad07c50aa29c104743880d2fb5973 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUI2OjE0QUI1MDo4MDYxRUQ0OkE2MTUwNTQ6Njk3NUM3NjYiLCJ2aXNpdG9yX2lkIjoiMTQ5ODIyODE1Mzg5NTk5NTIzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a98a98f16e2e2e22c5766b3a43fce7c861df3a7cc86366fbd39239e008d3eabe |
| hovercard-subject-tag | issue:957919165 |
| 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/NativeScript/nativescript-dev-webpack/1158/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d95eefc563b77d2d7722d1e2022bafd7365068cb60c3773263003d8bbde3cd3/NativeScript/nativescript-dev-webpack/issues/1158 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d95eefc563b77d2d7722d1e2022bafd7365068cb60c3773263003d8bbde3cd3/NativeScript/nativescript-dev-webpack/issues/1158 |
| og:image:alt | I created a new project by ns create command After ns run i got an error node_modules@ngtools\webpack\src\ivy\plugin.js:35 const mainFields = (_c = (_b = (_a = webpackOptions.resolve) === null || _... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PetroSuch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-dev-webpack git https://github.com/NativeScript/nativescript-dev-webpack.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 54984270 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-dev-webpack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 54984270 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-dev-webpack |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width