我正在使用vuejs + nuxtjs,并将交易视图集成到我的项目中。当我尝试在vue组件中导入charting_library.min.d.ts时,它返回错误。
Module build failed (from ./node_modules/ts-loader/index.js):
Error: TypeScript emitted no output for [[charting_library.min.d.ts file]]
答案 0 :(得分:0)
修改sdk >= 21
可以解决此问题。
通过添加以下内容来关闭发射输出:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container mt-3">
<form>
<div class="row">
<div class="col">
<label for="demo">Write your email here:</label>
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Email" id="demo" name="email">
<div class="input-group-append">
<span class="input-group-text">@</span>
</div>
<small>Help text</small>
</div>
</div>
<div class="col">
<label for="demo">Write your email here:</label>
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Email" id="demo" name="email">
<div class="input-group-append">
<span class="input-group-text">@</span>
</div>
<small>Help text</small>
</div>
</div>
<div class="col">
<label for="demo">Write your email here:</label>
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Email" id="demo" name="email">
<div class="input-group-append">
<span class="input-group-text">@</span>
</div>
<small>Help text</small>
</div>
</div>
<div class="col">
<label for="demo">Write your email here:</label>
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Email" id="demo" name="email">
<div class="input-group-append">
<span class="input-group-text">@</span>
</div>
<small>Help text</small>
</div>
</div>
<div class="col">
<label for="demo">Write your email here:</label>
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Email" id="demo" name="email">
<div class="input-group-append">
<span class="input-group-text">@</span>
</div>
<small>Help text</small>
</div>
</div>
</div>
</form>
</div>
</body>
</html>
如果需要此功能,请尝试添加:
tsconfig.json