Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taro3.6.16react项目 打包成h5报错,请作者解决一下,或者各位有没有解决方法 #196

Open
panpan-byte opened this issue May 17, 2024 · 0 comments

Comments

@panpan-byte
Copy link

node:26204) [DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_HASH] DeprecationWarning: [hash] is now [fullhash] (also consider using [chunkhash] or [contenthash], see documentation for details)
(Use node --trace-deprecation ... to show where the warning was created)⚠️ Warnings:

resolve 'zlib' in 'D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\pdfh5\js'
Parsed request is a module
using description file: D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\pdfh5\package.json (relative path: ./js)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\pdfh5\js\node_modules doesn't exist or is not a directory
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\pdfh5\node_modules doesn't exist or is not a directory
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\node_modules doesn't exist or is not a directory
looking for modules in D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules
single file module
using description file: D:\code\inf-medical-app-fe\package.json
(relative path: ./node_modules/.pnpm/pdfh5@1.4.2/node_modules/zlib)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\zlib doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\zlib.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\zlib.jsx doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\zlib.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\zlib.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\zlib.mjs doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\zlib.vue doesn't exist
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\zlib doesn't exist
looking for modules in D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules
single file module
using description file: D:\code\inf-medical-app-fe\package.json
(relative path: ./node_modules/.pnpm/node_modules/zlib)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\zlib doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\zlib.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\zlib.jsx doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\zlib.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\zlib.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\zlib.mjs doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\zlib.vue doesn't exist
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\zlib doesn't exist
D:\code\inf-medical-app-fe\node_modules\node_modules doesn't exist or is not a directory
looking for modules in D:\code\inf-medical-app-fe\node_modules
single file module
using description file: D:\code\inf-medical-app-fe\package.json
(relative path: ./node_modules/zlib)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\zlib doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\zlib.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\zlib.jsx doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\zlib.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\zlib.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\zlib.mjs doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\zlib.vue doesn't exist
D:\code\inf-medical-app-fe\node_modules\zlib doesn't exist
D:\code\node_modules doesn't exist or is not a directory
D:\node_modules doesn't exist or is not a directory

✖ Errors:

resolve 'http' in 'D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\pdfh5\js'
Parsed request is a module
using description file: D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\pdfh5\package.json (relative path: ./js)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\pdfh5\js\node_modules doesn't exist or is not a directory
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\pdfh5\node_modules doesn't exist or is not a directory
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\node_modules doesn't exist or is not a directory
looking for modules in D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules
single file module
using description file: D:\code\inf-medical-app-fe\package.json
(relative path: ./node_modules/.pnpm/pdfh5@1.4.2/node_modules/http)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\http doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\http.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\http.jsx doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\http.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\http.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\http.mjs doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\http.vue doesn't exist
D:\code\inf-medical-app-fe\node_modules.pnpm\pdfh5@1.4.2\node_modules\http doesn't exist
looking for modules in D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules
single file module
using description file: D:\code\inf-medical-app-fe\package.json
(relative path: ./node_modules/.pnpm/node_modules/http)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\http doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\http.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\http.jsx doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\http.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\http.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\http.mjs doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\http.vue doesn't exist
D:\code\inf-medical-app-fe\node_modules.pnpm\node_modules\http doesn't exist
D:\code\inf-medical-app-fe\node_modules\node_modules doesn't exist or is not a directory
looking for modules in D:\code\inf-medical-app-fe\node_modules
single file module
using description file: D:\code\inf-medical-app-fe\package.json
(relative path: ./node_modules/http)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\http doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\http.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\http.jsx doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
t
.tsx
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\http.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\http.mjs doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
D:\code\inf-medical-app-fe\node_modules\http.vue doesn't exist
D:\code\inf-medical-app-fe\node_modules\http doesn't exist
D:\code\node_modules doesn't exist or is not a directory
D:\node_modules doesn't exist or is not a directory

@panpan-byte panpan-byte changed the title Taro3.6.16,react 打包成h5报错,请作者解决一下,或者各位又没解决方法 Taro3.6.16,react 打包成h5报错,请作者解决一下,或者各位有没有解决方法 May 17, 2024
@panpan-byte panpan-byte changed the title Taro3.6.16,react 打包成h5报错,请作者解决一下,或者各位有没有解决方法 Taro3.6.16react项目 打包成h5报错,请作者解决一下,或者各位有没有解决方法 May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant