I'm trying to implement a page object pattern in a project that i cloned. The problem is that when i try to import a module, I get an error from VScode ='File '../path/module' is not a module.' I added module.exports in the module file and I changed 'module' to 'ES2015' in the tsconfig.json. I found a tip that I also should change 'type' of a 'script' for 'module' in the index.html file but the problem is that there is no such file in my project. 🙏 Help!
-
I found a component-index.html file, I added script tag with attribute type="module", did't work.knalepa– knalepa2023-03-24 16:24:57 +00:00Commented Mar 24, 2023 at 16:24
-
Are you sure that the path from which you're trying to import is correct? Check the parents hierarchyValeriia– Valeriia2023-03-26 11:09:40 +00:00Commented Mar 26, 2023 at 11:09
Add a comment
|

