腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Jest,
ts
-jest,带有ES模块导入的类型记录:无法找到模块
、
、
/__tests__/app.test.
ts
*/// projectRoot/__tests__/app.test.
ts
import
someF
浏览 2
提问于2021-02-11
得票数 12
回答已采纳
1
回答
Laravel -使用typescript和Laravel Mix构建
JS
库
、
、
我正在使用Laravel Mix和babel
ts
加载器将.
ts
文件转换为.
js
文件。但是,当我即使找到文件也不能使用这些函数时:
import
getCardInfo from '/
js
/main.
js
';resources/cardActions.
ts
: export de
浏览 36
提问于2019-07-30
得票数 0
1
回答
如何在堆栈闪电战中设置带有角度的玩笑
、
、
、
是否有可能建立项目运行角度单元测试与开玩笑?让它与codesandbox一起工作(它已经在开玩笑了),但是还没有能够让它在stackblitz中运行,考虑到它们的工作方式不同。
浏览 1
提问于2019-07-08
得票数 2
1
回答
如何在TypeScript中使用声明文件
、
、
假设我有以下Javascript类: function SomeClass() {/test.d.
ts
"/>
import
ns = module("./test.d"); 但也没有骰子。让它实际编译和运行的唯一方法是使用require语句而不是
import
,如下所
浏览 2
提问于2012-11-05
得票数 9
1
回答
Firebase云函数在使用数组的值函数时失败
、
、
、
我使用类型记录、es2017目标和节点8版本创建了一个firebase函数项目。const items = [1, 2, 3, 4]; 但是它失败了:items.values不是一个函数有人知道我想要什么设置来解决它吗?
浏览 0
提问于2019-01-27
得票数 0
1
回答
如何设置具有多源dir和独立编译目的地的类型记录项目?
、
/src/index.
ts
') ┌ tsconfig.json│ ├ index.
ts
(
import
'./de
浏览 4
提问于2021-06-30
得票数 6
回答已采纳
2
回答
在我使用VS模板创建的Polyfills.
ts
2 ASP.NET核心应用程序中,它们丢失了吗?
、
:\MyProjects\NetCore\AngularWebApplication\AngularWebApplication\node_modules\graceful-fs\polyfills.
js
浏览 6
提问于2017-10-16
得票数 4
回答已采纳
1
回答
在带有类型记录的VueJS2项目中使用Jest进行测试
、
、
、
我的
ts
组件: <div>some template<div>
import
Vue from 'vue';但是我的规范文件(虚拟的一个,一个component.spec.
ts
):
浏览 5
提问于2021-04-22
得票数 2
1
回答
类型记录中的导出默认值不适用于公共文本。
、
、
有
ts
节点。export default () => {}
import
helloWorld from "./helloWorld.
js
"; 它返回错误:Error: Cannot find module './helloWorld.
js</em
浏览 5
提问于2022-08-03
得票数 1
回答已采纳
3
回答
使“导入/扩展”需要Node.
js
TypeScript项目中的TypeScript扩展
、
、
、
/hello').TypeScript Node.
js
要求所有本地
import
都包含导入模块的扩展(例如,
import
hello from './hello.
js
'将编译带有或不带.
js
扩展的
import
),这意味着缺少的.
js
扩展是运行时.
js
.不转换
import
以添加.
js
扩展或将.
ts
转换为.
js
.在我的Node.
j
浏览 27
提问于2022-04-25
得票数 4
回答已采纳
2
回答
电子中的双向数据绑定Angular 2不起作用
、
、
electron-forge electron-forge init -t angular2yarn add @angular/forms
import
{ NgModule } from '@angular/core';
import
{ Browse
浏览 13
提问于2017-01-28
得票数 1
回答已采纳
2
回答
升级到带CLI的Angular 6后,测试将不会运行
、
、
、
、
afterAll我更改了test.
ts
test.
ts
// This file is required by karma.conf.
js
and loads recursively all the .spec and framework files
import
'zone.
js
/dist
浏览 3
提问于2018-05-15
得票数 3
1
回答
Svelte/类型记录错误:类型声明期间的“意外令牌”
、
、
、
Error: Unexpected token (Note that you need plugins to
import
files that are not JavaScript) "exclude": ["node_modules/*", "__sapper__/*&q
浏览 8
提问于2022-07-02
得票数 1
回答已采纳
1
回答
在类型记录和javascript中不能以相同的方式导入库
、
、
、
、
/* . */classA.
ts
} . . }
import
ClassA from 'class-a' console.log我想出的唯一解决
浏览 3
提问于2021-08-28
得票数 1
4
回答
如何在11上运行角5 asp.net核心MVC
、
、
当我读到时,我看到我们应该在polyfill.
ts
上做一些事情,但是使用ASP.NET内核,我看不到任何多边形文件。 你能告诉我怎样才能做到这一点吗?
浏览 1
提问于2018-01-17
得票数 0
回答已采纳
1
回答
Redwood
JS
:无法查询" query“类型的字段XX
、
我最近遇到了一个GraphQL问题,我不知道该去哪里,因为我相信我在查询时正确地遵循了GraphQL文档。 我有以下的模型。 model Contract { userId Int? make String year Int createdAt
浏览 22
提问于2021-08-04
得票数 0
1
回答
将ESLint配置为解析.
ts
和.tsx作为类型标,将.
js
和.jsx配置为Ecmascript
、
、
、
我想逐步重构ES文件到
TS
。是否可以将.
js
和.jsx文件解析为Ecmascript,.
ts
和.tsx解析为类型记录?", ".jsx", ".tsx", ".
ts
"] }],
浏览 4
提问于2020-07-17
得票数 16
回答已采纳
1
回答
如何在Angular Class Starter中使用外部库
'core-
js
/es6/symbol';
import
'core-
js
/es6/function';
import
'core-
js
/
浏览 12
提问于2017-07-02
得票数 0
回答已采纳
2
回答
Angular 5连接postgreSQL
、
、
import
{Sequelize} from '@angular/sequelize';const sequelize
浏览 19
提问于2018-01-20
得票数 1
2
回答
使用wallaby测试时出现意外保留字错误
、
在我编写测试用例的测试文件中,我导入了一个typescript文件,如下所示:在rootReducer.
ts
中,我导入了另一个typescript文件,如下所示:然后它会显示错误: SyntaxError: Unexpected reserv
浏览 2
提问于2016-01-28
得票数 7
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
typescript中import模块的寻址方式与ES6不同之处
TypeScript 渐进迁移指南
怎么在 Angular 8 中使用 Momentjs
TypeScript 结合 egg.js 基本使用
深入了解 Export和import
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券