Dependecies of node_module inside another node_module

荒凉一梦 提交于 2021-01-29 09:37:06

问题


I have to create a new node_module, inside this i need to use other modules, in this case uuid and object-exporter. When i run my module i have this error inside the bundle

/.../node_modules/Table/dist/bundle.js:1981
}({}, uuid));
      ^
ReferenceError: uuid is not defined

I imported the lib on package.jsonon depencencies

"dependencies": {
   "object-exporter": "^3.6.0",
   "uuid": "^8.3.1"
},

Anyone has some advice? I have to import the node_module on a sapper template

来源:https://stackoverflow.com/questions/64556839/dependecies-of-node-module-inside-another-node-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!