EOSIO / ual-plainjs-renderer

library providers a Plain JS renderer around the Universal Authenticator Library
MIT License
11 stars 21 forks source link

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

Open str opened 3 years ago

str commented 3 years ago

Following the documentation at examples

git clone git@github.com: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 fsevents@1.2.13: The platform "linux" is incompatible with this module.
# info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
# info fsevents@2.1.3: The platform "linux" is incompatible with this module.
# info "fsevents@2.1.3" 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 commented 2 years ago

Same issue here

siwakon-cha commented 2 years ago

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