我正在使用Svelte和Rollup一起开发一个应用程序,我遇到了这样一个问题,当我编译它时,它给了我一个关于没有App的警告:
No name was provided for external module 'C:\...path...\App.svelte' in output.globals – guessing 'App'
控制台在启动时显示:
Uncaught ReferenceError: App is not defined
at main.js:5
我的汇总配置:
main.js:
import App from './App
我试图使我的角度应用程序为AOT编译和树抖动(汇总)做好准备。但是,使用没有默认导出的模块(immutable.js、moment.js、.)有问题。根据类型脚本(look ),只能在以下语句中使用这些模块:import x = require('x')或import * as x from 'x',但这两种语句都会在汇总过程中造成问题。在某些情况下,我在rollup:Cannot call a namespace ('x')期间得到一个错误,在某些情况下,我得到一个运行时错误:x is undefined
在这里,您可以找到我的ROLUP-co
我正在尝试汇总我的完整的es6模块存储库,其中既有项目的本地导入/导出,也有对脚本或模块依赖项的导入。
我也在尝试一个双版本,通过汇总来创建遗留的生命模块。
这只适用于我的项目,没有问题。困难在于我有我的依赖项的导入。
Rollup的全局变量和外部选项应该会有所帮助,但到目前为止,我还没有成功地公开这些参数并将其汇总到iffe中。我得到了http://backspaces.github.io/asx/libs/three.module.js' is imported by src/Three.js, but could not be resolved – treating it as
我正在开发一个用创建的React。工作良好,现在我想实现一个html文本编辑器。为此,我选择了。我遇到了两个问题:
将Editor和EditorState添加到组件中:
import {Editor} from 'react-draft-wysiwyg'; import {EditorState} from 'draft-js';
汇总无法解析所需的编辑器和EditorState类。它给出了错误的名称-不是逐个输出模块‘。在并尝试之后,我将这些行添加到rollup.config.js中,从而解决了这个问题:
commonjs({
na
当我使用命令
cordova platform add ios
我要解决这个问题
Creating ios project...
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Cordova can only run in Xcode version 4.6 or greater.
Error: /
我目前正在为角4.x编写一个库(用TypeScript编写)。必要的JavaScript包是用创建的。在我添加和相应的类型(@types/big.js)之前,这一切都很好。
我是这样进口的:
import * as Big from 'big.js';
import BigJS = BigJsLibrary.BigJS;
像这样使用它:
// instantiating
let bigValue = Big(value);
// example of parameter usage
private someFunction(value: BigJS) { /* some co
使用rollup.config.js文件获取下面的错误消息
warning.indexOf不是�函数
rollup.config.js
import nodeResolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs';
import uglify from 'rollup-plugin-uglify'
//paths are relative to the execution path
export default