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

Error when creating a package. Error in step Copying template #382

Closed
1 of 2 tasks
guillempuche opened this issue Apr 21, 2023 · 1 comment · Fixed by #383
Closed
1 of 2 tasks

Error when creating a package. Error in step Copying template #382

guillempuche opened this issue Apr 21, 2023 · 1 comment · Fixed by #383
Labels
bug Something isn't working

Comments

@guillempuche
Copy link

guillempuche commented Apr 21, 2023

Description

The first time I try this repo.

When running npx create-react-native-library@latest name and fill all the package.json data, this happens:
imatge

/Users/aaaa/.npm/_npx/e106e660d51959d2/node_modules/create-react-native-library/lib/utils/generateExampleApp.js:62
        reject(new Error(stderr));
               ^

Error: - Downloading template
✔ Downloading template
- Copying template
✖ Copying template
error Error: Couldn't find the "/var/folders/ys/spt316fs5sxck01gjy40s1rc0000gn/T/rncli-init-template-AoLPqU/node_modules/react-native/template.config.js file inside "react-native" template. Please make sure the template is valid. Read more: https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template.

    at ChildProcess.<anonymous> (/Users/aaaa/.npm/_npx/e106e660d51959d2/node_modules/create-react-native-library/lib/utils/generateExampleApp.js:62:16)
    at Object.onceWrapper (node:events:642:26)
    at ChildProcess.emit (node:events:527:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12

The line 62 of generateExampleApp.js in the npx's cache ~/.npm/_npx/e106e660d51959d2/node_modules/create-react-native-library/lib/utils

        reject(new Error(stderr));

I tried version 0.27.2. The same problem.

Packages

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

Selected options

The step What type of library do you want to develop? I tried all, only Javascript worked.

Link to repro

No response

Environment

  • macOS 13
  • Node 16.15.1
@guillempuche guillempuche added the bug Something isn't working label Apr 21, 2023
@dvlkv
Copy link
Contributor

dvlkv commented Apr 26, 2023

+1

dvlkv added a commit to dvlkv/react-native-builder-bob that referenced this issue Apr 26, 2023
@atlj atlj closed this as completed in #383 May 9, 2023
atlj pushed a commit that referenced this issue May 9, 2023
#383)

Solves #382

<!-- Please provide enough information so that others can review your
pull request. -->
<!-- Keep pull requests small and focused on a single change. -->

### Summary

<!-- What existing problem does the pull request solve? Can you solve
the issue with a different approach? -->
Fixes #382 according to react-native
[issue](facebook/react-native#36290)

### Test plan

<!-- List the steps with which we can test this change. Provide
screenshots if this changes anything visual. -->
#382 won't reproduce with yarn installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants