Latest version doesn't seem to work in StackBlitz #9

Closed
opened 2020-04-03 10:09:21 +02:00 by PetarMetodiev · 3 comments
PetarMetodiev commented 2020-04-03 10:09:21 +02:00 (Migrated from github.com)

Since version 2.2.3, the package does not seem to work in StackBlitz - https://stackblitz.com/edit/typescript-zw2hah?file=index.ts

This is what I get in StackBlitz:
image

The previous version(2.2.2) seems to be ok - https://stackblitz.com/edit/typescript-t9ezwm?file=index.ts

Since version `2.2.3`, the package does not seem to work in StackBlitz - https://stackblitz.com/edit/typescript-zw2hah?file=index.ts This is what I get in StackBlitz: ![image](https://user-images.githubusercontent.com/6378306/78338367-57b3c000-759b-11ea-84b9-fbebbe71c6ea.png) The previous version(`2.2.2`) seems to be ok - https://stackblitz.com/edit/typescript-t9ezwm?file=index.ts
marijnh commented 2020-04-03 10:17:52 +02:00 (Migrated from github.com)

File an issue with stackblitz. It probably can't deal with .cjs file extensions, but it should, since those are likely to become more common in the near future.

File an issue with stackblitz. It probably can't deal with `.cjs` file extensions, but it should, since those are likely to become more common in the near future.
PetarMetodiev commented 2020-04-03 10:29:43 +02:00 (Migrated from github.com)

I can't seem to find any information on .cjs extension on the internet. Is there any chance that you mean .mjs?
As far as I know CJS is an abbreviation for CommonJS which is a module format, but does not have a separate file format.

I can't seem to find any information on `.cjs` extension on the internet. Is there any chance that you mean `.mjs`? As far as I know CJS is an abbreviation for CommonJS which is a module format, but does not have a separate file format.
marijnh commented 2020-04-03 10:31:47 +02:00 (Migrated from github.com)

It is used by node to force CommonJS modules. See https://nodejs.org/dist/latest-v13.x/docs/api/esm.html#esm_enabling .

It is used by node to force CommonJS modules. See https://nodejs.org/dist/latest-v13.x/docs/api/esm.html#esm_enabling .
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marijn/w3c-keyname#9
No description provided.