deep-foundation / deep-foundation/deepcase

How to add dependency to client handler?

Open
#60 9 comments 0 reactions 0 assignees View on GitHub
bug question
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.