[英]How to fix Missing class properties transform with react-sortablejs?
在現有的 React 項目中,我安裝了 react-soratablejs,它運行良好,但后來當我將 repo 拉到其他地方並進行 npm 安裝時,我開始得到SyntaxError: ......./node_modules/react-sortablejs/dist/index.js: Miss ...
[英]How to fix Missing class properties transform with react-sortablejs?
在現有的 React 項目中,我安裝了 react-soratablejs,它運行良好,但后來當我將 repo 拉到其他地方並進行 npm 安裝時,我開始得到SyntaxError: ......./node_modules/react-sortablejs/dist/index.js: Miss ...
[英]The decorators Plugin when .version is '2018-09' or not specified, requires a 'decoratorsBeforeExport' option, whose value must be a boolean
我收到以下Babel error 當 .version 為 '2018-09' 或未指定時,裝飾器插件需要一個 'decoratorsBeforeExport' 選項,其值必須是布爾值。 ..../node_modules/@babel/plugin-proposal-decorators/ ...
[英]How to avoid polyfills on production build of react-app
我的目標是在我的 react-app built 中保留ES6語法(或最新的語法) 。 我已經設法通過刪除一些babel依賴項(例如@babel/preset-env等)來避免在我的開發環境中使用 polyfill。 我注意到構建的產品使用var關鍵字和其他 ES5 語法。 我假設babel (或 ...
[英]nuxtjs client_side problem old browsers like firefox 34
我在舊瀏覽器(如 Firefox 34 版)中遇到了 nuxt 項目問題 我在客戶端添加的任何內容,不要在瀏覽器上顯示所有新瀏覽器上的一切都很好 任何人都可以幫助我嗎? ...
[英]why is my babel config ignoring this plugin?
這是我的 babe.config.js: 現在我收到這個錯誤: 所以基本上 babel 忽略了@babel/plugin-proposal-optional-chaining應該負責 optionalChaining 的插件 ...
[英]Babel-standalone exist in production bundle
在生產模式構建之后,我的包中有一個babel-standalone模塊。 但我從來沒有手動安裝過這個babel-standalone 。 而且它在package.json中也不存在。 但是我在這個項目中安裝了babel-polyfill , babel-standalone是否帶有 babel-po ...
[英]when i add a package i recieve webpack < 5 used to include polyfills for node.js core modules by default.This is no longer the case
我使用與 laravel 反應。 我用 nmp 安裝了一個日期選擇器 package 安裝后,當我啟動 npm 運行手表時,我收到了這個錯誤找不到模塊:錯誤:無法解析“/home/poldark/Desktop/chapagha/chapagha/src/chapagha-web/node_modu ...
[英]The plugins/built-ins 'es.const, es.let' passed to the 'exclude' option are not valid
當我運行我的 Vue 項目時,它在終端中拋出一個錯誤: 我認為我的環境是錯誤的,但我不知道在哪里; 我的環境: babel.config.js 誰能幫我? 謝謝; ======================= 可能是因為在執行npx browserslist@latest --update-d ...
[英]Async / Await using babel regenerator-runtime does not work in ie11
我有一個模板應用程序,我想使用 ie11,因為我使用的是 webpack + babel。 由於某種原因我忽略了,我的 JS 在 ie11 中根本不起作用,即使我確實將它設置為我的配置中的目標。 為了測試它,我在互聯網上使用了 ie11,但由於我在 MacOS 上,我無法訪問堆棧錯誤。 我在這里想念 ...
[英]How do I polyfill Promise.any() using babel 7?
我使用 webpack 為我的客戶捆綁我的代碼。 According to my question here Is it possible to break away from await Promise.all when any promise has fulfilled (Chrome 80 ...
[英]:class Unexpected token issue in testcafe in vue app
我正在嘗試在 Vue 應用程序中運行測試集成,並且在 components.test.js 中導入組件,但它給出了 Unexpected token 錯誤 components.test.js 任何人都可以建議? 更新:如果我使用 v-bind:class="" 那么我將面臨新錯誤 ...
[英]Gulp & Babel polyfill Promises for IE11 issue
我有一個用 Angular.js 編寫的舊項目。 我需要為 IE11 填充承諾,但它不起作用。 在 gulpfile.js 我需要 Babel 的東西 在這里我使用的是 pipe 該代碼在 chrome 上構建和工作,但在 IE11 上仍然存在問題,這意味着它沒有填充 Promise object ...
[英]Can Babel include regeneratorRuntime Dependency within the Generated Code?
使用 babel 以 Node v4 為目標,生成的代碼似乎依賴於未包含在輸出中的regeneratorRuntime模塊。 據我所知,在執行生成的代碼之前,似乎必須在運行時需要“regenerator-runtime/runtime”模塊。 (通過https://babeljs.io/docs ...
[英]how to make webpack import polyfills only for a specific build?
我只是設法讓 webpack 創建了兩個單獨的構建,一個用於 es5,另一個用於 es6。 看下面的配置文件: 現在的問題是我希望 webpack 僅為 es5 構建導入 polyfill。 並使用設置為 usage 的 usebuilins 無法填充任何內容。 我是否可能使用錯誤,可能與 n ...
[英]Seperate Babel Polyfills from Main Code when bundling
我正在使用 Webpack 和 Babel。 Babel 在我的 output 目錄中生成一個文件 main.js,所有的 polyfill 都添加到我的 js 文件旁邊。 我想將 polyfill 從主要代碼中分離到兩個不同的文件中。 polyfills.js 和 main.js。 這可能嗎? ...
[英]Babel transpile string to es2015
當我使用帶有以下代碼的 babeljs repl 時,我得到的輸出與我在節點項目中使用時得到的輸出不同。 這是我正在測試的代碼 和 babeljs repl 輸出是 但是當我從我的項目中使用它時 我得到這個輸出 .babelrc 文件是 我怎樣才能獲得與 babeljs re ...
[英]React App converting JS to ES5 to target IE 11
我目前有一個未在 IE 中運行/渲染的 React 應用程序,我認為是由於 ES5/ES6 問題。 我得到的錯誤是:語法錯誤。 在下面突出顯示的行上。 在編譯前 index.js 的頂部: 包.json: .babelrc 內 任何人都可以指導我如何讓 babel 為 ES5 ...
[英]SCRIPT5022: Exception thrown and not caught
我在我的 web 項目中使用 Vuejs。 由於有些用戶仍在使用 IE11,因此我需要使該 Web 項目兼容。 目前我在 IE11 上收到此錯誤: SCRIPT5022:拋出異常但未捕獲 故障線路是 我希望通過使用 polyfills 來避免錯誤行為。 這是webpack.mi ...
[英]JavaScript ES6 in Internet Explorer 11
我正在嘗試在 Internet Explorer 11 中運行 Javascript 代碼。 它不適用於箭頭函數或``,但是我需要這些語法,因為我希望工作更舒適並且沒有一些問題。 我嘗試在頁面頂部和底部使用 Babel,但在 IE11 中總是出現相同的錯誤: 字符無效 這個錯誤是因為${} ...
[英]core-js cannot resolve core-js/modules/es6.typed.uint32-array
我最近努力尋找解決以下錯誤的解決方案,即在某些開發依賴項中將 C++ Emscripten 生成的 javascript 模塊包含到 Gatsby React 應用程序中時,在 Webpack 階段未找到core-js/modules/es6.typed.uint32-array環境。 以下是便於 ...