简体   繁体   English

我创建了一个扩展,但是加载时找不到依赖项

[英]I've created an extension, but when loaded can't find a dependency

I've created an extension for VSCode which generated barrel files for Dart and Flutter projects.我为 VSCode 创建了一个扩展,它为 Dart 和 Flutter 项目生成桶文件。

I've used Javascript and I've used the package loadash .我用过 Javascript 和 package loadash However, now that I have installed it, I keep getting the error: Cannot find module 'lodash' .但是,现在我已经安装了它,我不断收到错误: Cannot find module 'lodash'

I've been looking around and I do not know how to fix it, since I would not want that all users should install the loadash dependency.我一直在环顾四周,但我不知道如何解决它,因为我不希望所有用户都安装loadash依赖项。 Aren't dependecies added when created the extension package with vsce package ?使用vsce package创建扩展 package 时是否添加了依赖项?

I solved it by removing the node_modules/** line from the .vscodeignore file.我通过从.vscodeignore文件中删除node_modules/**行来解决它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到变量 '$' 但我已经包含了 jQuery - Can't Find variable '$' but I've included jQuery 我如何确定何时加载了用滑脂猴子打开的标签? - How do I find out when a tab I've opened with greasemonkey is loaded? 我无法选择已从外部加载到D3中的SVG的元素 - I can't select elements of an SVG I've loaded externally into D3 为什么不能删除在Electron中使用fs-extra创建的目录? - Why can't I delete the directory that I've created using fs-extra in Electron? 我有一个用户信息命令,并使用.createdAt在日期创建。 我不能像以前那样设计风格 - I have a user info command, and have the created at date using .createdAt. I can't stylize this as I've done previously 我已经盯着我的代码几个小时了,找不到它出了什么问题。 -Javascript - I've been staring at my code for hours and can't find whats wrong with it. - Javascript React找不到我包含的第三方脚本 - React can't find 3rd party scripts I've included 我已经在CSS中隐藏了一些内容,但是当我单击按钮时我现在无法使其可见 - I've made something hidden in css, i can't make it visible now when I click a button 为什么我刚刚创建的 DOM 元素不存在? - Why would a DOM element not exist when I've just created it? 无法将fullCalendar与Google日历同步。 我到处都看了,找不到问题所在 - Can't sync fullCalendar with Google calendar. I've looked everywhere, can't find what's wrong
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM