existsSync is not exported
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, node.js
- 領域
- build-system, tooling
調査の方向性
まず、エラーに記載されている nodePolyfills() 設定と polyfills/empty.js パスから始め、../../core/utils/silly-i18n/src/index.js からの existsSync のインポートを調査します。browserified shim を提供するオプションを特定または文書化し、Rollup ビルドで existsSync が欠落しているものとして報告されなくなったことを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- JavaScript
- スター
- 142
- フォーク
- 64
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ionic-team/rollup-plugin-node-polyfills のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
ionic-team/rollup-plugin-node-polyfills#62 · コメント 2 件 · リアクション 6 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ionic-team/rollup-plugin-node-polyfills#56 · リアクション 11 件 ·
-
Type Error Importerオープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
node:pathオープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
ionic-team/rollup-plugin-node-polyfills#51 · リアクション 2 件 ·
ionic-team/rollup-plugin-node-polyfills の issue をすべて見る
似ている issue
-
⚠ needs intervention document not found
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
OpenTermsArchive/contrib-declarations#4151 ·
メンテナーはふだん 1 日以内に返信
-
correction via-web
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ch-bas/cctv-camera-database#416 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jeremysball/taskferry#622 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
coollabsio/openclaw#114 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug effort:medium model:light tests
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信