echoloid
echoloid17mo ago

✅ – 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
ghardin137
ghardin13717mo ago
basically that's built into node. there's a specific search pattern it uses when the import doesn't contain a path indicator
echoloid
echoloid17mo ago
So it's actually doing the file search like as in regular expressions, or via the grep, sed to find the appropriate file internally... ✅
reactibot
reactibot17mo ago
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
reactibot
reactibot17mo ago
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