NativeScript / NativeScript/plugins

demo not working : Cannot find module '@nativescript/localize/hooks/before-watchPatterns.js'

Đang mở
#544 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
TypeScript
Star
206
Fork
123
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
1

Mô tả

Hi,

Angular demo apps is not working.

Here the steps i follow :

git clone git@github.com:NativeScript/plugins.git
cd plugins
npm run setup
npm start

within npm start :

  • @nativescript.build-all
  • apps.demo.ios

The log :

―――――――――――――――――――――――― 
Running NativeScript CLI within apps/demo
 
ns debug ios --no-hmr --force
 
---
Searching for devices...
Preparing project...
webpack is watching the files...
assets by path *.js 9.43 MiB
  asset vendor.js 6.95 MiB [compared for emit] (name: vendor) (id hint: defaultVendor)
  asset bundle.js 2.34 MiB [emitted] [compared for emit] (name: bundle)
  asset packages_contacts_models_contact_ios_ts.js 56.7 KiB [compared for emit]
  asset packages_contacts_worker-get-contacts-by-name_ios_ts-_package_json.js 26 KiB [compared for emit]
  asset packages_contacts_worker-get-all-contacts_ios_ts-_package_json.js 25.7 KiB [compared for emit]
  asset runtime.js 12.4 KiB [compared for emit] (name: runtime)
  asset packages_theme-switcher_theme-loader_js_tools_demo_theme-switcher_themes_red_scss.js 4.42 KiB [compared for emit]
  asset packages_theme-switcher_theme-loader_js_tools_demo_theme-switcher_themes_green_scss.js 4.22 KiB [compared for emit]
  asset packages_theme-switcher_theme-loader_js_tools_demo_theme-switcher_themes_default_scss.js 3.2 KiB [compared for emit]
asset images/bigpic.jpg 15.4 MiB [compared for emit] [from: ../../tools/images/bigpic.jpg] [copied]
asset fonts/Linearicons-Free.ttf 79.7 KiB [compared for emit] [from: src/fonts/Linearicons-Free.ttf] [copied]
asset logos/ns-logo.png 28.4 KiB [compared for emit] [from: ../../tools/assets/logos/ns-logo.png] [copied]
asset tns_modules/inspector_modules.js 1.22 KiB [compared for emit] (name: tns_modules/inspector_modules)
Entrypoint bundle 9.31 MiB = runtime.js 12.4 KiB vendor.js 6.95 MiB bundle.js 2.34 MiB
Entrypoint tns_modules/inspector_modules 6.97 MiB = runtime.js 12.4 KiB vendor.js 6.95 MiB tns_modules/inspector_modules.js 1.22 KiB
runtime modules 9.24 KiB 24 modules
orphan modules 11.4 KiB [orphan] 7 modules
modules by path ../../ 3.02 MiB
  modules by path ../../node_modules/ 2.65 MiB 338 modules
  modules by path ../../packages/ 304 KiB 70 modules
  modules by path ../../tools/demo/ 74.2 KiB 41 modules
modules by path ./src/ 409 KiB
  modules by path ./src/plugin-demos/ 343 KiB 70 modules
  modules by path ./src/*.ts 861 bytes 3 modules
  modules by path ./src/*.xml 4.05 KiB 2 modules
  modules by path ./src/modals/ 888 bytes 2 modules
  ./src/ sync \.(xml%7Cjs%7C(?<%21\.d\.)ts%7Cs?css)$ 2.72 KiB [built] [code generated]
  ./src/app.scss 57.9 KiB [built] [code generated]
external "~/package.json" 42 bytes [optional] [built] [code generated]

WARNING in ./src/plugin-demos/imagepicker.xml
Module Warning (from ../../node_modules/@nativescript/webpack/dist/loaders/xml-namespace-loader/index.js):
Invalid character in entity name
Line: 20
Column: 51
Char: &
 @ ./src/ sync \.(xml%7Cjs%7C(?<%21\.d\.)ts%7Cs?css)$ ./plugin-demos/imagepicker.xml
 @ ../../node_modules/@nativescript/webpack/dist/stubs/virtual-entry-typescript.js 3:16-103

1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.89.0 compiled with 1 warning in 6189 ms
Webpack compilation complete. Watching for file changes.
Cannot find module '@nativescript/localize/hooks/before-watchPatterns.js'
Require stack:
- /Users/alexist/plugins/apps/demo/hooks/before-watchPatterns/nativescript-localize.js
- /Users/alexist/.nvm/versions/node/v18.16.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js
- /Users/alexist/.nvm/versions/node/v18.16.1/lib/node_modules/nativescript/lib/common/yok.js
- /Users/alexist/.nvm/versions/node/v18.16.1/lib/node_modules/nativescript/lib/bootstrap.js
- /Users/alexist/.nvm/versions/node/v18.16.1/lib/node_modules/nativescript/lib/nativescript-cli.js
- /Users/alexist/.nvm/versions/node/v18.16.1/lib/node_modules/nativescript/bin/tns
Done.

 

 >  NX   Running target ios for project demo and 71 tasks it depends on failed
 

My environment :

  • os : macos
  • yarn : 1.22.19
  • node : v18.16.1
  • npm : 8.19.4

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với apps/demo/hooks/before-watchPatterns/nativescript-localize.js và kiểm tra cách nó tham chiếu đến @nativescript/localize/hooks/before-watchPatterns.js sau npm run setup. Tái hiện bằng npm start và xác minh rằng bản demo Angular iOS khởi chạy mà không gặp lỗi thiếu module.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
node.js, typescript
Lĩnh vực
cli, tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.