Error combining with 6to5ify
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ệ
- javascript
- Lĩnh vực
- tooling
Hướng nghiên cứu
Bắt đầu với bản tái hiện trong main.js và theo dõi cách chuỗi biến đổi của browserify truyền import qua 6to5ify và brfs. Đọc stack của brfs/node_modules/static-module được hiển thị trong lỗi, bao gồm cả điểm vào parsing của nó. Được xem là hoàn tất khi tổ hợp biến đổi không còn gây lỗi, asset fs.readFileSync được xử lý và context trùng lặp được giải quyết nếu áp dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm trying to do a brfs transform after 6to5ify, but get the following error.
browserify()
.require("main", { entry: true })
.transform(6to5ify)
.transform(brfs)
.bundle()
.pipe(fs.createWriteStream(path.join('app.js')));
events.js:72
throw er; // Unhandled 'error' event
^
Error: tried to statically call { readFile: [Function: readFile], readFileSync: [Function: readFileSync], readdir: [Function: readdir], readdirSync: [Function: readdirSync] } as a function while parsing file: /Users/akula/foo/main.js while parsing file: /Users/akula/foo/main.js
at error (/Users/akula/foo/node_modules/brfs/node_modules/static-module/index.js:71:49)
at traverse (/Users/akula/foo/node_modules/brfs/node_modules/static-module/index.js:247:24)
at walk (/Users/akula/foo/node_modules/brfs/node_modules/static-module/index.js:216:13)
at walk (/Users/akula/foo/node_modules/brfs/node_modules/static-module/node_modules/falafel/index.js:60:9)
at /Users/akula/foo/node_modules/brfs/node_modules/static-module/node_modules/falafel/index.js:51:25
at Array.forEach (native)
at forEach (/Users/akula/foo/node_modules/brfs/node_modules/static-module/node_modules/falafel/index.js:8:31)
at /Users/akula/foo/node_modules/brfs/node_modules/static-module/node_modules/falafel/index.js:49:17
at Array.forEach (native)
at forEach (/Users/akula/foo/node_modules/brfs/node_modules/static-module/node_modules/falafel/index.js:8:31)
btw, there's a double "while parsing file" in the message.
My main.js looks like this.
import fs from 'fs';
var foo = fs.readFileSync(__dirname + '/foo.html');
console.log(foo.toString());
If I change the import to a require and don't do 6to5ify it works fine, but together it gives the error.
- Ngôn ngữ chính
- JavaScript
- Star
- 556
- Fork
- 58
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của browserify/brfs
-
Deprecation on sourcemap-codecĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
browserify/brfs#100 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
browserify/brfs#99 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
browserify/brfs#97 ·
-
Bug in merged source mapsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
browserify/brfs#86 · 3 bình luận ·
-
include `fs.statSync`/`fs.stat`?Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
browserify/brfs#80 · 1 bình luận ·
Tất cả issue của browserify/brfs
Issue tương tự
-
建议增加URL参数构建的工具Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
uoftblueprint/canada-basketball#67 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
打开群聊的设置同时打开侧边栏会出现侧边只出现一半Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
Fei2411/DeepSeek-Bot#456 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
área:app área:produto sem-fase tipo:decisão
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Varanda-org/varanda#91 ·
-
0️⃣ phase/new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày