Yes?
Yes
mjs, extension, static, media
node -v: v6.2.2npm -v:3.10.10yarn --version (if you use Yarn):npm ls react-scripts (if you haven’t ejected): [email protected] /Users/joe_lencioni/waypoint-test
└── [email protected]
Then, specify:
(Write your steps here:)
Page loads without errors.
Page shows error: "InvalidCharacterError: Failed to execute 'createElement' on 'Document': The tag name provided ('/static/media/index.73a4b08a.mjs') is not a valid name."

See repro instructions above
I believe this is happening because webpack has been configured to treat files with filenames ending in .mjs as static files, so when you import one instead of returning a reference to the export, it will output the contents in static/media and return the path to that file as a string.
Originally reported: https://github.com/brigade/react-waypoint/issues/221
Considering Node landed .mjs support in https://github.com/nodejs/node/pull/14369, I'm open to supporting this file format.
I welcome a PR to add support for the extension. 😄
Note, even though the specification states:
[".mjs", ".js", ".json", ".node"]
I'd like to fallback last to .mjs for compatibility reasons until v2.0.0 so there's no breaking change.
I'm still seeing an issue with destructuring .mjs imports ala import { something } from 'my-mjs-module' where something will be undefined... anyone else?
Note that when I switch the extension from .mjs to .js all is fine!
Most helpful comment
I'm still seeing an issue with destructuring
.mjsimports alaimport { something } from 'my-mjs-module'wheresomethingwill be undefined... anyone else?Note that when I switch the extension from
.mjsto.jsall is fine!