I think it's a bug: Understand the Differences Between import and require

Tell us what’s happening:
I know how to use import and export. And this exercise is not accepting my response. In fact, I even went and compared Free code camp’s solution to mine, and it’s identical. I then copied their solution code and pasted it as my solution and it’s still not working. I don’t know what to do.

Your code so far


"use strict";
import { capitalizeString } from "string-functions";
capitalizeString("hello!");

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/understand-the-differences-between-import-and-require/

You have a typo.

it’s "string_functions"; not string-functions.

That is on purpose. I originally typed it with the underscore, and it still didn’t work. I then went to free code camp’s spoiler answer, and this is what they had. So I copied and pasted it. And it still didn’t work. I also tried it like this “./string_functions” also this “string_functions” and finally what you see posted

Try Chrome if you aren’t.

Maybe clearing out local cache and cookies to FCC will help too.

That worked. Thank you

The answer in the spoiler is wrong, I think.

"use strict";
import { capitalizeString } from "**string-functions**";
capitalizeString("hello!");

I think it should be

"use strict";
import { capitalizeString } from **"string_functions"**;
capitalizeString("hello!");

I’m no expert, but I know the spoiler does not work if your run it through the test. It says it’s undefined.