0

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!

enter image description here

enter image description here

2
  • I found a component-index.html file, I added script tag with attribute type="module", did't work. Commented Mar 24, 2023 at 16:24
  • Are you sure that the path from which you're trying to import is correct? Check the parents hierarchy Commented Mar 26, 2023 at 11:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.