Reference Errors and still passing tests

I have been getting reference errors and still passing the tests and i wonder if it could be a bug or something

Your code so far

js

return string.toUpperCase();
}

const lowercaseString = (string) => {
return string.toLowerCase()
}
export {uppercaseString, lowercaseString};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36.

Challenge: Use export to Share a Code Block

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/use-export-to-share-a-code-block

1 Like

Same here . Challenge Passes even though referencing error is reported.

Can you post the actual passing code used and a screenshot of the reference error you are seeing?

  return string.toUpperCase();
}

const lowercaseString = (string) => {
  return string.toLowerCase()
}
export {uppercaseString, lowercaseString};```

This can be a browser specified issue where it cannot understand ES6 terms. Because sometimes browsers complain the import keyword even though it is part of JS. And to overcome that you need to tell the browser you are using modules by declaring type=“module” inside script tag in index.html.
Probably this is the same issue, probably not.

PS - Google searching the error gives me results related to a same issue like above but for TypeScript. May be FCC is using TS?