1.8.2-rc.0 is hot off the release press this morning… @benjamn is looking for contributions for updating @types /meteor if anyone has vast TypeScript knowledge and some spare time.
meteor:release-1.8.2
← meteor:core-typescript-plugin
With the release of Meteor 1.8.2-rc.0 this morning, there's now a TypeScript ske… leton app that you can create with the following command:
```sh
meteor create --release 1.8.2-rc.0 --typescript new-typescript-app
```
It's based on the `meteor create --react` app (so it uses React), and it includes a recommended `tsconfig.json` file.
I'm pretty happy with the absence of TypeScript errors and warnings in this project, though that depends partly on the use of [`@types/meteor`](http://npmjs.org/package/@types/meteor), which seems to be somewhat out of date. Hopefully the use of `@types/meteor` in this official TypeScript skeleton app will provide some encouragement for contributors to that project to continue the great work they've done so far.
One of the reasons I think the `tsconfig.json` file is important is that it demonstrates adding a `"paths": { "/*": ["*"] }` rule to support the `import ... from "/imports/some/module"` style. This wasn't always possible, because the TypeScript team dragged their feet on allowing "absolute" (leading `/`) `paths` entries, but it seems to work in `typescript@3.6.3`. In other words, I don't think we should be pretending that `imports/some/module` (nonstandard, unsupported) is synonymous with `/imports/some/module` (working since Meteor 1.3). Using a leading `/` is the way to go.
20 Likes
rc.1
is now out. Also Typescript skeleton is available as well.
meteor:release-1.8.2
← meteor:meteor-create-typescript-skeleton
opened 01:29PM - 19 Sep 19 UTC
Just as Meteor developers can run
```sh
meteor create --react my-react-app
me… teor create --minimal my-minimal-app
meteor create --bare my-bare-app
meteor create --full my-full-app
```
they can now run
```sh
meteor create --typescript my-typescript-app
```
to produce a new TypeScript application, based on the `--react` application, configured using a recommended `tsconfig.json` file.
This app represents the current best/simplest-known way to set up a Meteor-compatible TypeScript application, but it is still very much a work in progress. Please feel free to submit pull requests to improve it, or create issues to discuss how it should work.
For example, the community-maintained [`@types/meteor` package](https://www.npmjs.com/package/@types/meteor) covers all the core packages used by this starter application, but it has not been updated in a while, so there will no doubt be `meteor/*` packages with missing types. In future versions, Meteor should ideally generate the appropriate `.d.ts` files from TypeScript package source code, so that no separate `@types/meteor/*` declarations need to be maintained.
In other news the 1.9 branch with Node 12 has entered beta stages.
9 Likes
theara
September 20, 2019, 3:28am
3
Congratulation!, Please share any documents how to use Meteor + Typescript
?
And I would like to try Meteor, Typescript + Vue
!
2 Likes
Great news, congratulation, can’t wait for trying Meteor, Typescript and React
3 Likes
@benjamn Just released rc.10 and it looks like it will be the last rc candidate:
benjamn:
Now that the little green checkmark has been restored, I fully expect this to be the last Meteor 1.8.2 release candidate:
meteor update --release 1.8.2-rc.10
Give it a try, especially if you’re using Windows, since #10774 should greatly reduce the amount of recursive directory copying and deletion that Meteor has to do on Windows, in favor of simply renaming directories (something that should be simple and reliable… but alas nothing is simple on Windows).
10 Likes
And now 1.8.2 is released! MCP newsletter coming out any moment!
11 Likes
theara
November 15, 2019, 9:12am
9
Have any example Meteor + Typescript + Vue
?
2 Likes
Just an observation, didn’t know where to add this since it is not really an issue. The zipped bundle of my code in 1.8.2 is 10MB larger than 1.8.1.
2 Likes
arggh
November 15, 2019, 10:22am
11
I hope this is the server bundle you are talking about
2 Likes
rjdavid
November 15, 2019, 10:44am
13
That is 10x my client bundle that we are working so hard to keep small than 1mb
My client bundle is so small that browsers don’t even pick on it. I see a blank page It looks like we did a great job there…
permb
November 15, 2019, 11:47am
17
(picking up from some facepalming after I had forgotten to actually execute metor update --release 1.8.2)
I tried the new Typescript support, but it doesn’t feel quite ready. I got a module loading error for the “mem” package (no idea on how to resolve) but the killer for me is that even when I introduce type errors in the code, the command line compiler (meteor run) doesn’t show these. Maybe I forgot to pass a flag or something.
Hi guys, please try 1.8.2 out and provide feedbacks in the PR then we can recommend it to everybody early next week.
3 Likes
theara
November 18, 2019, 3:07am
19
I can’t update meteor update
on global in my PC.
It still show The latest version of Meteor, 1.8.1, is already installed on this computer
Had the same issue as @theara , but I was able to update by specifying meteor update --release 1.8.2
2 Likes
theara
November 18, 2019, 7:03am
21
But could update on meteor project
.
theara
November 18, 2019, 7:32am
22
Have any guide to use such as:
import { Mongo } from 'meteor/mongo';
export interface Link {
_id?: string;
title: string;
url: string;
createdAt: Date;
}
export const Links = new Mongo.Collection<Link>('links');
Hello, this is not an issue, Meteor has a system to recommend automatically or not a release, 1.8.2 is already published but not recommended automatically yet, we are probably changed to recommended in the next days.
1 Like