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

Typing not there #60

Open
babakness opened this issue Nov 28, 2018 · 8 comments
Open

Typing not there #60

babakness opened this issue Nov 28, 2018 · 8 comments

Comments

@babakness
Copy link

babakness commented Nov 28, 2018

https://github.com/palmerhq/the-platform/blob/16c0c7ebfa3d8d1e8b92306a8fdfaba064bf6e4a/package.json#L18

Yet installing from npm the

cd node_modules/the-platform
find . | grep ts

nada.

@babakness babakness changed the title Typing not Typing not there Nov 28, 2018
@babakness
Copy link
Author

babakness commented Nov 28, 2018

Looked into it. The right files are being built but looks like not being uploaded to npm. Using a locally link version for now to get types.

For someone who doesn't want to wait, this worked for me

  1. clone the repo, yarn install
  2. yarn run build
  3. yarn link
  4. go to your project
  5. yarn link the-platform

Be sure yarn unlink the-platform and install from npm when this issue is resolve

peace✌️

@babakness
Copy link
Author

Oh, so Script doesn't have "async" as prop (shown in docs with async flag)

@babakness
Copy link
Author

image

@jaredpalmer
Copy link
Owner

Call createRoot to enable conconcurrent React

@jaredpalmer
Copy link
Owner

Sorry I misread this. Is the file not there?

@Pau1fitz
Copy link

Pau1fitz commented Dec 3, 2018

@jaredpalmer I am having the same issue

Could not find a declaration file for module 'the-platform'.

Try npm install @types/the-platform if it exists or add a new declaration (.d.ts) file containing declare module 'the-platform';

Is there a solution here?

When I run yarn add the-platform it is js files installed in my node_modules, and not ts files, but maybe this is expected? ¯_(ツ)_/¯

@stunaz
Copy link

stunaz commented Jan 4, 2019

same issue here

@pie6k
Copy link

pie6k commented Feb 2, 2019

same issue. seems like final index.d.ts is not making it in published npm files.

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

5 participants