Skip to content

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

Description

@str

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions