existsSync is not exported
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, node.js
- Lĩnh vực
- build-system, tooling
Hướng nghiên cứu
Bắt đầu với cấu hình nodePolyfills() và đường dẫn polyfills/empty.js được nêu trong lỗi, sau đó kiểm tra import existsSync từ ../../core/utils/silly-i18n/src/index.js. Hoàn tất có nghĩa là xác định hoặc ghi lại tùy chọn cung cấp shim được browserify và xác nhận rằng bản build Rollup không còn báo existsSync là bị thiếu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
With this configuration:
import copy from "rollup-plugin-copy";
import sucrase from "@rollup/plugin-sucrase";
import json from "@rollup/plugin-json";
import css from "rollup-plugin-css-only";
import resolve from "@rollup/plugin-node-resolve";
import svg from "rollup-plugin-svg";
import nodePolyfills from 'rollup-plugin-node-polyfills';
export default {
input: "src/index.jsx",
output: {
file: "dist/index.js",
format: "iife",
globals: {
react: "React",
fs: "fs",
path: "path",
"react-dom": "ReactDOM",
},
},
//This is meant to suppress the warning for d3-selection circular dependencies (https://github.com/d3/d3-selection/issues/168)
onwarn: function (warning, warn) {
if (warning.code === "CIRCULAR_DEPENDENCY") return;
warn(warning);
},
plugins: [
svg(),
css({ output: "css/bundle.css" }),
json(),
nodePolyfills(),
sucrase({
transforms: ["jsx"],
production: true,
}),
copy({
targets: [
{
src: [
"node_modules/react/umd/react.development.js",
"node_modules/react-dom/umd/react-dom.development.js",
"src/static/*",
],
dest: "dist",
},
],
verbose: true,
}),
resolve(),
],
external: ["react", "react-dom"],
};
I get this error
[!] Error: 'existsSync' is not exported by node_modules/rollup-plugin-node-polyfills/polyfills/empty.js, imported by ../../core/utils/silly-i18n/src/index.js
It's true that the documentation mentions
optional, add option to enable browserified shim
However, not clear how to add that option. What does it really mean?
- Ngôn ngữ chính
- JavaScript
- Star
- 142
- Fork
- 64
- 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 ionic-team/rollup-plugin-node-polyfills
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
ionic-team/rollup-plugin-node-polyfills#62 · 2 bình luận · 6 reaction ·
-
Feature Request: http2 polyfillĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ionic-team/rollup-plugin-node-polyfills#56 · 11 reaction ·
-
Type Error ImporterĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
-
node:pathĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
ionic-team/rollup-plugin-node-polyfills#51 · 2 reaction ·
Tất cả issue của ionic-team/rollup-plugin-node-polyfills
Issue tương tự
-
⚠ needs intervention document not found
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
OpenTermsArchive/contrib-declarations#4151 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Correction: IMOU Cruiser 4MPĐang mởcorrection via-web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
ch-bas/cctv-camera-database#416 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jeremysball/taskferry#622 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
coollabsio/openclaw#114 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug effort:medium model:light tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày