Skip to content

Update package.json#4041

Closed
Boefjim wants to merge 1 commit intophoenixframework:masterfrom
Boefjim:patch-1
Closed

Update package.json#4041
Boefjim wants to merge 1 commit intophoenixframework:masterfrom
Boefjim:patch-1

Conversation

@Boefjim
Copy link

@Boefjim Boefjim commented Oct 26, 2020

Change

Added "type": "module"

Reason

Currently NodeJS will give the following error when trying to import phoenix.js:
The requested module 'phoenix' is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export.
Indicating that the type of the package is a module will fix this.

Added "type": "module"
@chrismccord
Copy link
Member

We specify the module field on master. Thanks! ❤️❤️❤️🐥🔥

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

Successfully merging this pull request may close these issues.

2 participants