avatar
文章
22
标签
0
分类
21
首页
归档
分类
标签
关于
Decmoe47's BlogCould not read source map for xxx
搜索
首页
归档
分类
标签
关于

Could not read source map for xxx

发表于2025-03-16|更新于2025-04-07|编程TypeScript
|总字数:35|阅读时长:1分钟|浏览量:

在launch.json中添加:

1
2
3
4
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
],

参考:[node-debugger] Debugger spams “Could not read sourcemaps” messages · Issue #102042 · microsoft/vscode · GitHub

文章作者: Decmoe47
文章链接: https://decmoe47.github.io/p/74b82b73/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Decmoe47's Blog!
上一篇
Typescript使用ts-node报错Could not find a declaration file for module
ts要用js的第三方modules时,会提示你Could not find a declaration file for module,然后让你install @types/对应的模块名,或者自己写.d.ts文件。后者的话,随便在哪新建个xxx.d.ts文件,xxx自己取。然后文件里写上: (详细代码请查看正文) 你可以多个模块声明写在一个文件里,也可以分开。 但是如果你用ts-node的话,写了.d.ts文件还不行,还是会报错找不到。这时候需要你新建个文件夹,里面再新建个文件夹,然后里面放上.d.ts文件。例如: ┏ node_modules┣ src┗ index.ts┣ types┗ package┗ alltypes.d.ts┣ tsconfig.json┗ package.json 然后在tsconfig.json里添加: (详细代码请查看正文)...
下一篇
go通过github action自动部署到服务器
我的最终的配置文件 deploy.yml ,主要做了以下几件事: 先配置go环境; go build; 先终止在伪终端里跑的程序(否则无法成功上传); 上传构建后的文件; 让程序在伪终端里跑起来。 (详细代码请查看正文) 期间经历了很多坎坷,接二连三遇到问题: 先出现了 remote open("/home/ubuntu/app/rabbitool/rabbitool") failure ,解决办法是先把正在运行的程序停了,然后再上传。因此才用ssh-scp-ssh-pipelines。 然后出现了 open terminal failed: not a terminal,解决办法是ssh启动时加上 -t 。但是ssh-scp-ssh-pipelines没法在连接ssh时传入参数,因此最后再用个单独的ssh action。 shell - tmux open terminal failed: not a terminal - Stack Overflow 又出现了 Pseudo-terminal will not be allocated...

评论
最新文章
记录搭建博客的过程(Hexo+Butterfly+Github Actions+Github Pages)2025-03-17
go缓解连续多个iferr的一个办法2025-03-16
解决Goland换主题但代码看起来五颜六色太乱的问题2025-03-16
Typescript使用ts-node报错Could not find a declaration file for module2025-03-16
Could not read source map for xxx2025-03-16
go通过github action自动部署到服务器2025-03-16
©2025 By Decmoe47
框架 Hexo 7.3.0|主题 Butterfly 5.3.5
搜索
数据加载中