Skip to content

yarn start - error #943

@Alexufo

Description

@Alexufo

Description

run
npx create-react-native-library@latest

cd test
yarn
cd example
yarn start

C:\test>cd test
C:\test\test>yarn
C:\test\test>cd example
C:\test\test\example>yarn start
error Error loading Metro config at: C:\test\test\example\metro.config.js
(baseConfig.resolver.blockList || []) is not iterable.
TypeError: (baseConfig.resolver.blockList || []) is not iterable
at withMetroConfig (file:///C:/test/test/example/node_modules/react-native-monorepo-config/index.js:189:53)
at Object. (C:\test\test\example\metro.config.js:13:16)
at Module._compile (node:internal/modules/cjs/loader:1692:14)
at Object..js (node:internal/modules/cjs/loader:1824:10)
at Module.load (node:internal/modules/cjs/loader:1427:32)
at Module._load (node:internal/modules/cjs/loader:1250:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at cjsLoader (node:internal/modules/esm/translators:316:5)
at ModuleWrap. (node:internal/modules/esm/translators:208:7)

C:\test\test\example>

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

C:\test>npx create-react-native-library@latest

✔ Where do you want to create the library?
│ test

✔ What do you want to name the npm package?
│ react-native-test

✔ How would you describe the package?
│ test

✔ What is the name of the package author?
│ test

✔ What is the email address of the package author?
test@test.com

✔ What is the profile URL for the package author?
│ https://

✔ What is the repository URL for the package?
│ https://

✔ What type of library do you want to develop?
│ Turbo module

✔ Which language do you want to use for native code?
│ Kotlin & Objective-C

✔ What type of example app do you want to create?
│ App with Community CLI

✔ Which tools do you want to configure?
│ ESLint with Prettier, Jest, Lefthook with Commitlint, Release It, Vite

Link to repro

http://

Environment

windows10/ubuntu22

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions