Cannot use "Api" as folder name when require modules #5151
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
I have a viewModel which need to do http request and an endpoint configured in Api/endpoint.js
If I use
var api = require("../Api/endpoint.js")
, then I will getUnable to resolve module..
error.But if I rename the "Api" folder to "Endpoint" or something else, the error disappears.
I'm working on iOS project.
The text was updated successfully, but these errors were encountered: