Trouble importing. Not finding the item.
Answered
Spectacled bear posted this in #help-forum
Spectacled bearOP
Answered by Spectacled bear
Thanks for helping. Figured it out. When theres brackets around the componenet parent for some reason it doesnt want to import.
Removing the brackets fixes
Removing the brackets fixes
6 Replies
Tonkinese
What are you trying to import?
@Tonkinese What are you trying to import?
Spectacled bearOP
Trying to import the main function Code into a normal page.jsx file
Tonkinese
ok, what error message do you receive?
@Tonkinese ok, what error message do you receive?
Spectacled bearOP
Not showing up here.
Tonkinese
You are exporting the component correctly.
Show me your input path?
Something like this maybe:
Show me your input path?
Something like this maybe:
import Code from "../components/code";@Tonkinese You are exporting the component correctly.
Show me your input path?
Something like this maybe: `import Code from "../components/code";`
Spectacled bearOP
Thanks for helping. Figured it out. When theres brackets around the componenet parent for some reason it doesnt want to import.
Removing the brackets fixes
Removing the brackets fixes
Answer