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
TypeError: IP2Region is not a constructor
at file:///C:/Users/17218/Desktop/getip/app.js:17:23
at Layer.handle [as handle_request] (C:\Users\17218\Desktop\getip\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\17218\Desktop\getip\node_modules\express\lib\router\route.js:144:13)
at Route.dispatch (C:\Users\17218\Desktop\getip\node_modules\express\lib\router\route.js:114:3)
at Layer.handle [as handle_request] (C:\Users\17218\Desktop\getip\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\17218\Desktop\getip\node_modules\express\lib\router\index.js:284:15
at Function.process_params (C:\Users\17218\Desktop\getip\node_modules\express\lib\router\index.js:346:12)
at next (C:\Users\17218\Desktop\getip\node_modules\express\lib\router\index.js:280:10)
at expressInit (C:\Users\17218\Desktop\getip\node_modules\express\lib\middleware\init.js:40:5)
at Layer.handle [as handle_request] (C:\Users\17218\Desktop\getip\node_modules\express\lib\router\layer.js:95:5)
使用作者提供的ES6 import导入无法正常使用,报错为:
代码是这样的
The text was updated successfully, but these errors were encountered: