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

Doesn't tsc cleanly to javascript #58

Closed
dabrahams opened this issue Nov 26, 2021 · 1 comment
Closed

Doesn't tsc cleanly to javascript #58

dabrahams opened this issue Nov 26, 2021 · 1 comment

Comments

@dabrahams
Copy link

When I run tsc in the root directory, I get lots of errors, and this is after responding to many of them by using npm to install various modules:

packages/core/stories/createStyleObject.stories.ts:1:10 - error TS2614: Module '"@emotion/css"' has no exported member 'css'. Did you mean to use 'import css from "@emotion/css"' instead?

1 import { css } from '@emotion/css';
           ~~~

packages/metrics/scripts/build.ts:3:20 - error TS2307: Cannot find module 'dedent' or its corresponding type declarations.

3 import dedent from 'dedent';
                     ~~~~~~~~

packages/metrics/scripts/build.ts:4:20 - error TS2307: Cannot find module 'p-queue' or its corresponding type declarations.

4 import PQueue from 'p-queue';
                     ~~~~~~~~~

packages/metrics/scripts/build.ts:5:25 - error TS2307: Cannot find module 'cli-progress' or its corresponding type declarations.

5 import cliProgress from 'cli-progress';
                          ~~~~~~~~~~~~~~

packages/metrics/scripts/build.ts:6:31 - error TS2307: Cannot find module '@capsizecss/unpack' or its corresponding type declarations.

6 import { Font, fromUrl } from '@capsizecss/unpack';
                                ~~~~~~~~~~~~~~~~~~~~
...

Maybe there's some implicit knowledge I'm supposed to have about how to build such projects for use in a website?

@michaeltaranto
Copy link
Contributor

Fixed an error in the site when building from the root level, I havent observed any of the above. The repo is a mono repo with a few packages and does not generate a single js file.

I would suggest installing @capsizecss/core into your project and consuming it that way.

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

2 participants