Comments (11)
可以的,clone源码到本地,重新构建就可以了
yarn
yarn build
from picx.
可以的,clone源码到本地,重新构建就可以了
yarn yarn build
无法解析 @intlify/shared 包的入口文件
root@933a62df7f4b:/Compiler_src/picx# yarn build
yarn run v1.22.19
$ vite build
vite v2.7.13 building for production...
✓ 27 modules transformed.
[vite-plugin-pwa:build] Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package
error during build:
Error: Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package
at packageEntryFailure (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30629:11)
at resolvePackageEntry (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30625:9)
at tryNodeResolve (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30440:20)
at Object.resolveId (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30257:28)
at /Compiler_src/picx/node_modules/rollup/dist/shared/rollup.js:22879:40
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
from picx.
可以的,clone源码到本地,重新构建就可以了
yarn yarn build无法解析 @intlify/shared 包的入口文件 root@933a62df7f4b:/Compiler_src/picx# yarn build yarn run v1.22.19 $ vite build vite v2.7.13 building for production... ✓ 27 modules transformed. [vite-plugin-pwa:build] Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package error during build: Error: Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package at packageEntryFailure (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30629:11) at resolvePackageEntry (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30625:9) at tryNodeResolve (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30440:20) at Object.resolveId (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30257:28) at /Compiler_src/picx/node_modules/rollup/dist/shared/rollup.js:22879:40 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
切npm试试看
from picx.
可以的,clone源码到本地,重新构建就可以了
yarn yarn build无法解析 @intlify/shared 包的入口文件 root@933a62df7f4b:/Compiler_src/picx# yarn build yarn run v1.22.19 $ vite build vite v2.7.13 building for production... ✓ 27 modules transformed. [vite-plugin-pwa:build] Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package error during build: Error: Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package at packageEntryFailure (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30629:11) at resolvePackageEntry (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30625:9) at tryNodeResolve (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30440:20) at Object.resolveId (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30257:28) at /Compiler_src/picx/node_modules/rollup/dist/shared/rollup.js:22879:40 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
切npm试试看
好快的回复速度...
也是一样的问题,我先是
npm install
npm run build
构建不通过,才来翻issue的
root@933a62df7f4b:/Compiler_src/picx# npm install
npm WARN deprecated @types/[email protected]: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: Use String.prototype.trim() instead
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated [email protected]: [email protected]
> [email protected] prepare
> husky install
husky - Git hooks installed
added 1245 packages, and audited 1246 packages in 57s
225 packages are looking for funding
run `npm fund` for details
18 vulnerabilities (5 moderate, 13 high)
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
root@933a62df7f4b:/Compiler_src/picx# npm run build
> [email protected] build
> vite build
vite v2.7.13 building for production...
✓ 27 modules transformed.
[vite-plugin-pwa:build] Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package
error during build:
Error: Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package
at packageEntryFailure (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30629:11)
at resolvePackageEntry (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30625:9)
at tryNodeResolve (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30440:20)
at Object.resolveId (/Compiler_src/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30257:28)
at /Compiler_src/picx/node_modules/rollup/dist/shared/rollup.js:22879:40
冒昧问一下你的构建环境?
from picx.
考虑切换一下版本,我是 14.15.0 成功的
from picx.
@zishume 好的,我再试试
from picx.
@zishume
node 14.17.6报错
yarn
error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 16". Got "14.17.6"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
node 14.5.0 报错
yarn
error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 16". Got "14.5.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command
node 16.0.0 报错
yarn
error [email protected]: The engine "node" is incompatible with this module. Expected version "^14.17.0 || ^16.13.0 || >=18.0.0". Got "16.0.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
node 16.13.0 报错
node 18.0.0 报错
与之前相同
root@510edfb925a0:/picx# yarn build
yarn run v1.22.18
$ vite build
vite v2.7.13 building for production...
✓ 27 modules transformed.
[vite-plugin-pwa:build] Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package
error during build:
Error: Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package
at packageEntryFailure (/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30629:11)
at resolvePackageEntry (/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30625:9)
at tryNodeResolve (/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30440:20)
at Object.resolveId (/picx/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30257:28)
at /picx/node_modules/rollup/dist/shared/rollup.js:22879:40
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
from picx.
@Biw315 @zishume
我用 yarn 和 npm install 都不能构建,看到 pnpm-lock.yaml 文件,查了一下换成 pnpm就可以了
可用 docker 环境
docker run -d --rm --name node-compiler -v ~/Compiler_dir:/Compiler_dir node tail -f /dev/null
docker exec -it node-compiler /bin/bash
##容器中
cd Compiler_dir
git clone https://github.com/XPoet/picx.git
cd picx
npm install -g pnpm
pnpm install
pnpm run build
取用 picx/dist 目录
from picx.
@Febtw @Biw315
这是我的环境,不清楚你们咋不成功...emmm
from picx.
@zishume
win下没尝试
依赖版本是用 pnpm-lock.yaml 锁定的,
vue-i18n和write-file-atomic的错误是在npm或yarn时跳版本了,和项目要求的版本不对应,可能你的外部依赖库刚好能满足
from picx.
PicX 不建议自己额外部署,其本身在一直迭代维护中,直接使用作者提供的 picx.xpoet.cn 就好,能为你减少很多不必要的麻烦。
from picx.
Related Issues (20)
- 增加docker镜像 HOT 1
- 点击“复制图片链接”无法复制,刷新目录提示 Code: 401, Message: Bad credentials HOT 3
- 点击图片链接没法复制,f12控制台提示Cannot destructure property 'rule' of 'a.imageLinkType.presetList[i]' as it is undefined. HOT 3
- 是否可以移除图片上传时25M大小的限制?
- 不希望刷新重复出现 We detected that your IP is located in xxx. Do you want to switch to xx? HOT 1
- 图片上传后,复制不了图片链接 HOT 5
- 在图床管理中双击打开图片无响应 HOT 5
- 大写字母文件格式支持 HOT 1
- ⚠️ ⚠️ 重要公告,必读 🚥🚥 HOT 5
- 建议上传时重命名直接用哈希值以及日期目录可以自定义 HOT 1
- “在线使用入口”支持自行部署吗? HOT 1
- 有API接口文档吗 HOT 2
- 侧边栏收起/展开的 trigger,在切换过程中位置发生了变化 HOT 1
- GitHub Page模式下图片链接同步性问题
- login and use on mobiles HOT 5
- images with .ico suffix is not listed
- 复制图片链接没反应!!!!!
- 这个图床上传后最终图片去了哪里? HOT 2
- 这个图床上传后最终图片去了哪里?
- 这个可以我自行部署吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from picx.