@shopify/liquid-html-parser package has no `.js.map` files

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

Maintainer thường phản hồi trong vòng 2 ngày

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
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
build-system

Hướng nghiên cứu

Kiểm tra package @shopify/liquid-html-parser v2.0.5 đã được phát hành, tập trung vào các tệp dist/*.js, thư mục /src bị thiếu và các tệp .js.map không tồn tại. So sánh nội dung package và các tham chiếu sourceMappingURL với npm artifact dự kiến, sau đó xác minh rằng việc sử dụng nó thông qua @shopify/theme-check-common v2.9.2 không còn tạo ra lỗi tải source map.

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

Mô tả

Describe the bug
@shopify/liquid-html-parser package has no /src folder and .js.map files. We can check that on npmjs.com (linked to package name above). This package is used in @shopify/theme-check-common package that is needed for .liquid files checking.
Naturally, missing .js.map files results in errors if you have source mapping for dependencies in your project. Errors like that:

WARNING in ./node_modules/@shopify/liquid-html-parser/dist/conditional-comment.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'X:\work\shop\shops\node_modules\@shopify\liquid-html-parser\dist\conditional-comment.js.map' file:
Error: ENOENT: no such file or directory, open 'X:\work\shop\shops\node_modules\@shopify\liquid-html-parser\dist\conditional-comment.js.map'

Expected behaviour
@shopify/liquid-html-parser package has /src folder and .js.map files and has no source map loading errors.

Actual behaviour
@shopify/liquid-html-parser package has no /src folder and .js.map files.
But tries to use sourceMappingURLs in the every .js files like in the screenshot:
Image

Debugging information

  • Lib Version - latest of @shopify/liquid-html-parser (v2.0.5)
  • Lib Version that uses liquid-html-parser - latest of @shopify/theme-check-common (v2.9.2)
Ngôn ngữ chính
TypeScript
Star
245
Fork
108
Merge trung bình
2 ngày 8 giờ
Pull request đã merge (30 ngày)
24

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

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 Shopify/theme-tools

Tất cả issue của Shopify/theme-tools

Issue tương tự

Thêm issue về TypeScript

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.