Help me with error in JS tutorial

Error: TypeError: unknown: s.extname is not a function

Your code so far


import{ uppercaseString } from "./string_functions.js";
import{ lowercaseString } from "./string_functions.js";
// Only change code above this line

uppercaseString("hello");
lowercaseString("WORLD!");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0.

Challenge: Reuse JavaScript Code Using import

Link to the challenge:

seems that something is wrong with the thing you are importing, could be freeCodeCamp made something wrong?

safari kinda explains the error more

TypeError: unknown: (0,s.extname) is not a function. (In β€˜(0,s.extname)(n)’, β€˜(0,s.extname)’ is undefined)

Just checked the last challenge

const uppercaseString = (string) => {
  return string.toUpperCase();
}

const lowercaseString = (string) => {
  return string.toLowerCase()
}

They want you to do like this

import {uppercaseString, lowercaseString} from './string_function.js';

The reason it doesn’t work is because, freeCodeCamp has done something wrong.

Even the solution doesn’t work.

yeah, seem like everyone is having this bug

Here are the latest updates with the issue