I am trying to import a constant which is a JSON body from a file inside another folder inside my project. I have tried copying the relative path to it and the constant has the export keyword before the declaration so I have export constant = {}
在主要档案中,我发现Cannot有模块错误,我没有想法,因为我试图寻找可能的解决办法。
**The import statement: **
import {post_next_questions_request_body} from ..post-calls-bodies/post-next-questions ;
错误:
Cannot find module ..post-calls-bodies/post-next-questions or its corresponding type declarations.
I have tried the following paths: ..post-calls-bodies/post-next-questions .post-calls-bodies/post-next-questions post-calls-bodies/post-next-questions
没有成功