Mapping is missing NativeArray causing older ember versions to not work with some newer addon versions

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

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

Đánh giá

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

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi build liên quan đến việc import NativeArray từ @ember/array, đồng thời kiểm tra dữ liệu JSON của repository và mọi mục mapping cho API đó. Xác nhận mapping dự kiến cho các phiên bản Ember cũ hơn, sau đó xác minh rằng tổ hợp addon được báo cáo không còn lỗi trong quá trình xử lý Babel.

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

Mô tả

should be available from @ember/array

https://discord.com/channels/480462759797063690/1078725868500832378/1079878481334251590

Example Error

Build Error (broccoli-persistent-filter:Babel > [Babel: @ember-data/model]) in -private/promise-many-array.ts

/Users/chasegiunta/repos/dochub/frontend/-private/promise-many-array.ts: @ember/array does not have a NativeArray export
> 1 | import ArrayMixin, { NativeArray } from '@ember/array';
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2 | import type ArrayProxy from '@ember/array/proxy';
  3 | import { assert, deprecate } from '@ember/debug';
  4 | import { dependentKeyCompat } from '@ember/object/compat';SyntaxError: /Users/chasegiunta/repos/dochub/frontend/-private/promise-many-array.ts: @ember/array does not have a NativeArray export
> 1 | import ArrayMixin, { NativeArray } from '@ember/array';
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2 | import type ArrayProxy from '@ember/array/proxy';
  3 | import { assert, deprecate } from '@ember/debug';
  4 | import { dependentKeyCompat } from '@ember/object/compat';
    at File.buildCodeFrameError (/Users/chasegiunta/repos/dochub/frontend/node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/file.js:205:12)
    at NodePath.buildCodeFrameError (/Users/chasegiunta/repos/dochub/frontend/node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/index.js:105:21)
    at /Users/chasegiunta/repos/dochub/frontend/node_modules/.pnpm/[email protected]/node_modules/babel-plugin-ember-modules-api-polyfill/src/index.js:228:20
    at Array.forEach (<anonymous>)
    at processImportDeclaration (/Users/chasegiunta/repos/dochub/frontend/node_modules/.pnpm/[email protected]/node_modules/babel-plugin-ember-modules-api-polyfill/src/index.js:188:16)
    at PluginPass.ImportDeclaration (/Users/chasegiunta/repos/dochub/frontend/node_modules/.pnpm/[email protected]/node_modules/babel-plugin-ember-modules-api-polyfill/src/index.js:321:9)
    at newFn (/Users/chasegiunta/repos/dochub/frontend/node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/visitors.js:149:21)
    at NodePath._call (/Users/chasegiunta/repos/dochub/frontend/node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js:45:20)
    at NodePath.call (/Users/chasegiunta/repos/dochub/frontend/node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js:35:17)
    at NodePath.visit (/Users/chasegiunta/repos/dochub/frontend/node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js:80:31)
Ngôn ngữ chính
JavaScript
Star
84
Fork
30
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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.

Issue khác của ember-cli/ember-rfc176-data

Tất cả issue của ember-cli/ember-rfc176-data

Issue tương tự

Thêm issue về JavaScript

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.