-
Notifications
You must be signed in to change notification settings - Fork 127
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
In sample core code : Ceramic.create is not a function ? #1429
Comments
The ipfs creation code is outdated in the docs site it seems, try the example in this blogpost: https://blog.ceramic.network/how-to-store-signed-and-encrypted-data-on-ipfs/ Will update the docs! |
The documentation should be updated now. Can you give it another try and let us know how it works @on-meetsys? |
Thanks. The documentation is indeed closer to the code found in other places.
Nevertheless, this code still returns an error (stored as
May be I've misunderstood anything else ? But as explained in this documentation, using node, I still can not make it work. |
I think this has something to do with your environment not using the default. Try doing this: import { default: Ceramic } from '@ceramicnetwork/core' If that doesnt' work try logging the Ceramic object you imported above and see if there is a |
|
@zachferland @PaulLeCam Any idea why the default may not be available as the top level export when using import? I imagine this only happens for certain setups (usually works in the expected way). |
Hello, By the way, once corrected, the previous code launches another error with dag-jose. Even if it not the same issue, I will ask here, because other people may find this code by googling it. This issue is also opened here Whatever the way I setup the ìpld.formats', the
A
and the
I found surprising the |
Put simply, we shouldn't use // Add named export
export class Ceramic {...}
// Keep default export while in v1.x
export default Ceramic And then in docs, replace |
I'm experiencing the same issue
|
What version of IPFS are you using @Hesbon5600 ? |
I'm using ipfs HTTP client
|
can i work on this issue? |
@btme0011 This issue is pretty old so not sure if it's still a problem actually. If you can replicate it then feel free! |
Describe the bug
The code described here leads to several errors :
https://developers.ceramic.network/build/installation/
https://github.com/ceramicnetwork/js-ceramic/tree/develop/packages/core
To Reproduce
With the code given, after packages are installed :
Several errors with this code occur after
node index.js
(v15.9.0) :'./cjs/src/basics-import.js' is not defined
, same forlegacy
I've therefore modified ìndex.js` (according this comment dealing with multiformat ) :
Which returns a
TypeError: Ceramic.create is not a function
May be the example code should be modified/improved to help newcomers start with ceramiq, with a step by step sample.
The text was updated successfully, but these errors were encountered: