grey-matter does not import as a function when using import statements #171
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Getting an error when trying to run the following hello world example, I get an error where the
matterexport is not a function.Offending code:
Resulting error:
When I edit the export line in grey-matter/index.js in node modules to display:
I can then import and run the marked package like this just fine:
Are node packages with
"type":"module"not supported or is this behavior a bug?You can also just do
import { default as matter } from 'gray-matter'and it should resolve it. This package should definitely play nicer with modules.I have a error: Buffer is not defined
@AaronConlon i think you run into #143