You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As someone who uses template literals (`) more than I problably should, I attempted to write my first import statement using them, which left me trying to figure out why I couldn't run npx webpack sucessfully.
That said, i'd like to add a little note box, perhaps like the one on the Factory Functions lesson, that mentions that template literals can't be used for import/export statements, and to stick to quote or double quote for import/export.
Lessons in Foundation don't inform that template literals have things they can't do over other string declarations, in fact the MDN doc that first introduces them only lists that they are better than other string declarations. But that might be for another day.
For now I'd like to add a small note about them in the ES6 Modules Lesson. I'd be happy to work on it.
Thanks for opening this issue @aceus0.
The MDN docs for import do state that you can only use single or double quotes for the module name (i.e. no template literals). I'm not opposed to a quick note in the current lesson though reinforcing that, perhaps best as an additional comment to the following code block:
Checks
Describe your suggestion
ES6 Modules
As someone who uses template literals
(`)
more than I problably should, I attempted to write my first import statement using them, which left me trying to figure out why I couldn't runnpx webpack
sucessfully.That said, i'd like to add a little note box, perhaps like the one on the Factory Functions lesson, that mentions that template literals can't be used for import/export statements, and to stick to quote or double quote for import/export.
Lessons in Foundation don't inform that template literals have things they can't do over other string declarations, in fact the MDN doc that first introduces them only lists that they are better than other string declarations. But that might be for another day.
For now I'd like to add a small note about them in the ES6 Modules Lesson. I'd be happy to work on it.
Path
Node / JS
Lesson Url
https://www.theodinproject.com/lessons/node-path-javascript-es6-modules
(Optional) Discord Name
aceus_
(Optional) Additional Comments
First Issue and possible first contribution!
The text was updated successfully, but these errors were encountered: