create-react-library icon indicating copy to clipboard operation
create-react-library copied to clipboard

Try to change package name result in development error.

Open FateRiddle opened this issue 5 years ago • 2 comments

I try to change package name from test-lib into @fateriddle/test-lib example:

// App.js
import { ExampleComponent } from '@fateriddle/test-lib'

// package.json
"dependencies": {
    ...
    "@fateriddle/test-lib": "link:.."
  },

src

// package.json
{
  "name": "@fateriddle/test-lib",
  ...

But still getting error that it couldn't find @fateriddle/test-lib

FateRiddle avatar Jun 28 '20 01:06 FateRiddle

In your test-lib, is the package.json having the same name?

psyycker avatar Jun 30 '20 13:06 psyycker

@Pyrax yes. I don't know where do I have to change besides the 3 places I mentioned above. package.json, example's package.json's dependencies, and example/App.js 's import code.

FateRiddle avatar Jul 07 '20 03:07 FateRiddle