Skip to content

升级最新版react-native-update-cli后,打包报错 #487

@464847775

Description

@464847775

使用的是Taro, "@tarojs/cli": "4.0.9",更新react-native-update-cli后,打包报错。如何解决?
具体输出如下:

pushy bundle --platform ios
react-native-update-cli: 1.43.0 (最新:1.43.0)
react-native-update: 10.27.1 (最新:10.27.1)
Bundling with react-native: 0.73.5
Running bundle command: node /Users/xxx/xxx/node_modules/@expo/cli/build/bin/cli export:embed --assets-dest .pushy/intermedia/ios --bundle-output .pushy/intermedia/ios/index.bundlejs --platform ios --reset-cache --dev false --entry-file index.js
env: load .env.production .env
env: export TARO_APP_MODE TARO_APP_API TARO_APP_CLIENT_ID TARO_APP_CLIENT_SECRET
error: Assets must have hashed files. Ensure the expo-asset plugin is installed.
AssertionError [ERR_ASSERTION]: Assets must have hashed files. Ensure the expo-asset plugin is installed.
Error: "react-native bundle" command exited with code 1.
at ChildProcess. (/Users/captian/.nvm/versions/node/v20.11.1/lib/node_modules/react-native-update-cli/lib/bundle.js:236:24)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions