✅ – echoloid – 13-55 Mar 15
May I know,
How the statement
import {react} from "react"
Able to find the actual react module present in the node_modules without using any absolute path like
'../node_modules/react'
4 Replies
basically that's built into node. there's a specific search pattern it uses when the import doesn't contain a path indicator
So it's actually doing the file search like as in regular expressions, or via the grep, sed to find the appropriate file internally...
✅
This question has an answer! Thank you for helping 😄
If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1085561824231039077
This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1085561824231039077
Question not getting answered? Maybe it's hard to answer, or maybe you asked at a slow time. Check out these resources for help asking a good question:
https://stackoverflow.com/help/how-to-ask
http://wp.me/p2oIwo-26