Can't load file from inline

Hi, when trying to add inline from file, it says can’t reload the resource:

File ‘C:\Users\IEA\eclipse-workspace-new.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\virtualsafeconsole/frontend/html/fbpixel.html’ for inline resource is not available through the servlet context class loader. >

Tried calling it multiple ways:

  1. @Inline(“context://frontend/html/test.html”)
  2. @Inline(“frontend://html/test.html”)
  3. From the PageConfigurator method:
public void configurePage(InitialPageSettings settings) {
settings.addInlineFromFile(InitialPageSettings.Position.PREPEND, Util.getBaseDirectory(VaadinServlet.getCurrent()) + "/frontend/html/test.html", InitialPageSettings.WrapMode.NONE);
}

According to [this]
(https://vaadin.com/docs/v13/flow/advanced/tutorial-bootstrap.html) it doesn’t say where I’m supposed to put the html file. Can someone help?

IE A:
Hi, when trying to add inline from file, it says can’t reload the resource:

File ‘C:\Users\IEA\eclipse-workspace-new.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\virtualsafeconsole/frontend/html/fbpixel.html’ for inline resource is not available through the servlet context class loader. >

Tried calling it multiple ways:

  1. @Inline(“context://frontend/html/test.html”)
  2. @Inline(“frontend://html/test.html”)
  3. From the PageConfigurator method:
public void configurePage(InitialPageSettings settings) {
settings.addInlineFromFile(InitialPageSettings.Position.PREPEND, Util.getBaseDirectory(VaadinServlet.getCurrent()) + "/frontend/html/test.html", InitialPageSettings.WrapMode.NONE);
}

According to [this]
(https://vaadin.com/docs/v13/flow/advanced/tutorial-bootstrap.html) it doesn’t say where I’m supposed to put the html file. Can someone help?

Hi, i could add html file using this code:
UI.getCurrent().getPage().addHtmlImport(“frontend://styles/htmlStyle/index.html”);