Open requestforcriticism opened 9 months ago
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.
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
Getting an error when trying to run the following hello world example, I get an error where the
matter
export 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?