rollupjs

    3熱度

    2回答

    bundeling更新到Angular2 RC7在瀏覽器中運行時,我得到了folloing JavaScript錯誤後:不定義 OuterSubscriber 這隻當我使用rollup.js創建一個包時發生。如果我運行未捆綁JavaScript的應用程序,它可以正常工作。 錯誤必須以某種方式與rxjs相關,因爲OuterSubscriber是其中的一部分。我檢查了捆綁軟件,但在那裏找不到Outer

    1熱度

    1回答

    我使用lodash新[email protected]項目模板,其中包括 打字稿 彙總 ES2015模塊模塊 這個工作對我來說: npm install lodash --save npm install @types/lodash --save-dev --save-exact // typescript import _ from "lodash"; 但是顯然lodash-es與Ro

    1熱度

    2回答

    我使用rollupjs作爲新[email protected]版本的一部分。該項目使用tsconfig.json與compilerOptions.module = "es2015"而不是"commonjs",這對我來說是全新的。 // typescript import { AgmCoreModule } from 'angular2-google-maps/core'; 我從彙總得到這個i

    1熱度

    2回答

    我最近更新我的Ionic2項目從2.0.0-beta.11到2.0.0-rc.0。我使用Immutable.js(版本^ 3.8.1)。由於更新我遇到離子在下面的錯誤即成命令: [16:50:23] bundle dev started ... [16:50:40] Error: Module /myproject/node_modules/immutable/dist/immutable.js

    1熱度

    2回答

    我已將我的離子應用程序從beta 11更新爲rc0。所以這意味着我已經從angular2 rc4切換到了angular2 stable,從typescript 1.8到2以及使用rollupjs模塊捆綁器。 我照着這篇博客配置AngularFire2: Getting Started with Ionic 2 RC0, Firebase 3 + AngularFire 2 我不能編譯,收到此錯誤:

    0熱度

    1回答

    我正在重建我的Ionic 2應用程序以在RC.0中工作,並且我遇到了Charts.js的問題。我使用的ng2-chartjs2模塊運行良好,但它也需要包含在index.html中的Charts.js 2.0庫。我可以輕鬆地將腳本標記添加到www/index.html - 並且它可以工作 - 但是在每個構建中它都會消失。我認爲這是因爲彙總正在重寫每個構建的index.html文件並刪除腳本標記。 我

    1熱度

    1回答

    我在D3 4.0和Ionic2/Angular2項目中的導入語句有問題。 我相信我正在使用正確的導入語句,並且編譯所有內容。 import * as d3Request from 'd3-request'; export class HomePage { constructor() { d3Request.xml('assets/mysvg.svg') .m

    0熱度

    1回答

    任何人都能夠與REDX和REDX thunk建立一個應用程序?在我的情況下,它與ionic serve一起工作,但與npm run build一起失敗。我無法爲設備構建,它只能在瀏覽器中運行。 我得到這些錯誤NGC [19:25:46] ngc: Error: Error encountered resolving symbol values statically. Calling functio

    0熱度

    1回答

    我的Angular 2編碼爲typescript 2的應用程序使用the Intl.js polyfill。 我已將module:"es2015"設置爲tsconfig.json以允許使用Rollup.js作爲recommended by Angular進行樹形抖動。在我的組件我只是做import 'intl' 當我運行在瀏覽器中的應用程序,我得到的錯誤 global is not defined

    1熱度

    1回答

    我試圖利用RC.6中提供的新AOT編譯功能,但遇到阻塞程序。我可以成功地創建一個包與NGC =>彙總=>巴貝爾,但是我每次運行彙總時,我得到多個警告: The 'this' keyword is equivalent to不確定at the top level of an ES module, and has been rewritten 束成功完成。與JIT編譯相同的代碼庫工作正常。該角2個應用