我有一个在本地构建的项目,我尝试创建一个Docker镜像。在我的项目中,我安装了NPM包,我的包文件位于:\src\Core.Blazor\package.json
但是,当我尝试构建Docker镜像时,它失败了,错误如下:
npm ERR! code ENOLOCAL
npm ERR! Could not install "src/Core.Blazor/package.json" as it is not a directory and is not a file with a name ending in .tgz, .tar.gz or .tar
我也加入了Docker
当我将我的parcel.js部署到Vercel时,我会得到这个错误:
@parcel/core: No transformers found for static/actions.glb.
下面是Vercel的完整部署日志:
Detected package.json
Installing dependencies...
Detected `package-lock.json` generated by npm 7...
npm WARN deprecated highlight.js@7.3.0: Version no longer supported. Upgrade to @latest
我正在尝试将Node.js webapp应用程序从第1包迁移到第2包。
我在客户端javascript代码(这个包包)中有一个函数,它调用我从后端Node.js代码中的实用程序函数文件中导入的另一个函数。
所有其他前端函数都可以工作,所有其他需要Node.js过程的Node.js函数仍然可以工作。当我在代码中触发调用此函数时:
getCloudinaryUrl.js:22 Uncaught (in promise) ReferenceError: process is not defined
在第1包中,一切都很好,所以我假设这是我的第2包配置的问题,而不是Cloudinary。
冒犯的界限:
我有一个基本的超文本标记语言表单页面,链接到一个JavaScript文件。这两个文件都存在于一个Node项目中,我将Parcel用作一个捆绑器(因为我最终想将其转换为TypeScript)。 当我在浏览器中运行html文件时,JavaScript函数将被触发,但当我运行Parcel构建时,index.html将被编译,但JavaScript函数不会被触发。它可以识别js文件,因为我可以在函数外部调用dom查询。 当我在控制台中签入时,我得到错误: (index):12 Uncaught ReferenceError: validationFunction is not defined
伙计们,今天好!我在网上寻找解决方案,但找不到,所以我向你寻求帮助。在我详细描述情况时请耐心听我说。
我是一个初学者,在开发一个引导网络项目时遇到了包裹问题。First, it throws an error for using index.js which doesn't make any sense. As per the bootstrap, doc. folder structure suppose to be
project-name/
├── build/
├── node_modules/
│ └── bootstrap/
│ └── popper.js/
├──