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

测试Demo添加新页面时编译失败 #3955

Closed
yuyehen opened this issue Jul 16, 2024 · 3 comments
Closed

测试Demo添加新页面时编译失败 #3955

yuyehen opened this issue Jul 16, 2024 · 3 comments
Assignees
Labels
stale: closed Closed due to stale stale: 30d No interaction in the last 30 days

Comments

@yuyehen
Copy link

yuyehen commented Jul 16, 2024

Describe the bug
(base) ➜ hippy-react-demo git:(main) ✗ npm run hippy:build


[email protected] hippy:build
node ./scripts/env-polyfill.js webpack --config ./scripts/hippy-webpack.ios.js --config ./scripts/hippy-webpack.android.js

Start to execute cmd: "webpack --config ./scripts/hippy-webpack.ios.js --config ./scripts/hippy-webpack.android.js"
Current openssl version: 3.0.13+quic
Full command execute: "cross-env-os NODE_OPTIONS=--openssl-legacy-provider webpack --config ./scripts/hippy-webpack.ios.js --config ./scripts/hippy-webpack.android.js"

  • Using the @hippy/react defined in package.json
  • Using the @hippy/react defined in package.json
    [webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve './messageHomePage' in '/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/src/pages'
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/webpack/lib/Compilation.js:925:10
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/webpack/lib/NormalModuleFactory.js:401:22
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/webpack/lib/NormalModuleFactory.js:130:21
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/webpack/lib/NormalModuleFactory.js:224:22
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/neo-async/async.js:2830:7
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/neo-async/async.js:6877:13
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/webpack/lib/NormalModuleFactory.js:214:25
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/Resolver.js:213:14
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :27:1)
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :16:1)
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/RootPlugin.js:37:38
    at _next42 (eval at create (/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :8:1)
    at eval (eval at create (/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :31:1)
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :27:1)
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :16:1)
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/DirectoryExistsPlugin.js:27:15
    at /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:85:15
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
    resolve './messageHomePage' in '/Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/src/pages'
    using description file: /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/package.json (relative path: ./src/pages)
    Field 'browser' doesn't contain a valid alias configuration
    using description file: /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/package.json (relative path: ./src/pages/messageHomePage)
    no extension
    Field 'browser' doesn't contain a valid alias configuration
    /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/src/pages/messageHomePage doesn't exist
    .js
    Field 'browser' doesn't contain a valid alias configuration
    /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/src/pages/messageHomePage.js doesn't exist
    .jsx
    Field 'browser' doesn't contain a valid alias configuration
    /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/src/pages/messageHomePage.jsx doesn't exist
    .json
    Field 'browser' doesn't contain a valid alias configuration
    /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/src/pages/messageHomePage.json doesn't exist
    as directory
    /Users/sunwei/Documents/Hippy/driver/js/examples/hippy-react-demo/src/pages/messageHomePage doesn't exist
    ❌ Execute cmd - "cross-env-os NODE_OPTIONS=--openssl-legacy-provider webpack --config ./scripts/hippy-webpack.ios.js --config ./scripts/hippy-webpack.android.js" error: * Using the @hippy/react defined in package.json
    
    
    
  • Hippy native SDK version: [e.g. 3.x]
    
@yuyehen
Copy link
Author

yuyehen commented Jul 18, 2024

添加的文件是tsxx类型的

Copy link

hippy-service bot commented Sep 16, 2024

Pay attention 🛎️ !!
There has been no activity on this issue for 2 months, so I will label it stalled.
It will be automatically closed in 60 days if no more activity. Feel free to leave a comment if you have any questions.

@hippy-service hippy-service bot added the stale: 30d No interaction in the last 30 days label Sep 16, 2024
Copy link

hippy-service bot commented Oct 16, 2024

Sorry, closing this issue because it has stalled for over 3 months.
Feel free to reopen if this issue is still relevant, or to ping the collaborator if you have any questions.

@hippy-service hippy-service bot added the stale: closed Closed due to stale label Oct 16, 2024
@hippy-service hippy-service bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale: closed Closed due to stale stale: 30d No interaction in the last 30 days
Projects
None yet
Development

No branches or pull requests

2 participants