deep-foundation / deep-foundation/deepcase
How to add dependency to client handler?
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
We have added dependency this way: https://github.com/deep-foundation/deepcase/compare/main...LiKissDmd:deepcase:main
Here is client handler code:
```tsx
async ({ deep, require }) => {
const React = require('react');
const { Box,Button } = require('@chakra-ui/react');
const { generateMessages, getAllCoolOrders } = require("@likissdmd/warframe-market-prime-trash-buyer")
return ({ fillSize, style, link }) => {
function buttonClickHandler(){
const allCoolOrders = await getAllCoolOrders()
const messages = generateMessages(allCoolOrders)
}
return
Generate Messages
}
}
```
Nothing is showed in the preview. I think this is related to import. When we were trying to import this package in async docker handler (not client) we had error like "You are importing es module by using require, use async import instead (await import)) and we fixed that by using await import instead and it was working. await import here does not work
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.