简体   繁体   中英

Metro Bundler error in installing own npm package

I have created this npm package. After installing it in another app and running it, I get the error:

Metro Bundler has encountered an internal error

This happens even if the project is a newly initialised one. What is wrong in my npm package?

Probably because in your index.js file you have

import App from "./src/App";

but there is no such file in your repo.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM