Skip to content
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

Cannot find module 'ual-plainjs-renderer' or its corresponding type declarations. #95

Open
str opened this issue Jul 31, 2021 · 2 comments

Comments

@str
Copy link

str commented Jul 31, 2021

Following the documentation at examples

git clone [email protected]:EOSIO/ual-plainjs-renderer.git
cd ual-plainjs-renderer/examples/
yarn

# yarn install v1.22.5
# [1/4] Resolving packages...
# [2/4] Fetching packages...
# info [email protected]: The platform "linux" is incompatible with this module.
# info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
# info [email protected]: The platform "linux" is incompatible with this module.
# info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
# [3/4] Linking dependencies...
# [4/4] Building fresh packages...
# Done in 3.91s.

cp default.env .env
yarn example

yarn run v1.22.5
$ yarn build && mkdir dist/public && webpack --config webpack.config.js && nodemon server --exec babel-node -e js
$ rm -rf dist && tsc --build tsconfig.json
src/ButtonWebView.ts:3:23 - error TS2307: Cannot find module 'ual-plainjs-renderer' or its corresponding type declarations.

3 import { UALJs } from 'ual-plainjs-renderer'
                        ~~~~~~~~~~~~~~~~~~~~~~


Found 1 error.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@Arkyris
Copy link

Arkyris commented Mar 30, 2022

Same issue here

@siwakon-cha
Copy link

how to declare ual-reactjs-renderer with typescript ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants