<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay Vue Module Project: Import of Single file templates is not working</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111925375" />
  <subtitle>Liferay Vue Module Project: Import of Single file templates is not working</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111925375</id>
  <updated>2026-04-04T11:07:56Z</updated>
  <dc:date>2026-04-04T11:07:56Z</dc:date>
  <entry>
    <title>RE: Liferay Vue Module Project: Import of Single file templates is not work</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111961180" />
    <author>
      <name>H. Reineke</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111961180</id>
    <updated>2019-01-08T16:09:20Z</updated>
    <published>2019-01-08T16:09:20Z</published>
    <summary type="html">Thank you for the fast reply + help. We will think about that. </summary>
    <dc:creator>H. Reineke</dc:creator>
    <dc:date>2019-01-08T16:09:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay Vue Module Project: Import of Single file templates is not work</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111960837" />
    <author>
      <name>Iván Zaera Avellón</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111960837</id>
    <updated>2019-01-08T15:41:27Z</updated>
    <published>2019-01-08T15:41:27Z</published>
    <summary type="html">&lt;p&gt;Unfortunately, nope :-(. We definitely need to address vue templates
  some time in the future, but right now it is not at the top of the
  priority list.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;However, if you want to investigate it and maybe contribute your
  specific solution, the support may arrive faster to the official tool :-).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I can help you with specific bundler issues if you have doubts though
  I haven't played with vue templates yet, so I don't know what needs to
  be done specifically.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Ivan&lt;/p&gt;</summary>
    <dc:creator>Iván Zaera Avellón</dc:creator>
    <dc:date>2019-01-08T15:41:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay Vue Module Project: Import of Single file templates is not work</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111951898" />
    <author>
      <name>H. Reineke</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111951898</id>
    <updated>2019-01-07T19:40:40Z</updated>
    <published>2019-01-07T19:40:40Z</published>
    <summary type="html">&lt;p&gt;I 've heard that there will be a new version of  liferay-npm-bundler
  for vue/react/etc. Will the conversion of *.vue files to javascript 
  be considered in the new version of  liferay-npm-bundler?&lt;/p&gt;</summary>
    <dc:creator>H. Reineke</dc:creator>
    <dc:date>2019-01-07T19:40:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay Vue Module Project: Import of Single file templates is not work</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111929462" />
    <author>
      <name>Iván Zaera Avellón</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111929462</id>
    <updated>2019-01-04T13:00:54Z</updated>
    <published>2019-01-04T13:00:54Z</published>
    <summary type="html">&lt;p&gt;You are right. As stated &lt;a
  href="https://github.com/liferay/liferay-npm-build-tools/wiki/How-to-deploy-npm-packages-to-Liferay#amdization-of-javascript-modules"&gt;here&lt;/a&gt;
  all modules inside the deployed JAR file must be JS code in AMD
  format, so you need to make sure that you translate your vue templates
  to JS code as it is done, for instance, with JSX templates in React projects.&lt;/p&gt;
&lt;p&gt;I guess you can use babel for that, but I cannot be 100% sure because
  I haven't tested it.&lt;/p&gt;</summary>
    <dc:creator>Iván Zaera Avellón</dc:creator>
    <dc:date>2019-01-04T13:00:54Z</dc:date>
  </entry>
  <entry>
    <title>Liferay Vue Module Project: Import of Single file templates is not working</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111925374" />
    <author>
      <name>H. Reineke</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111925374</id>
    <updated>2019-01-03T16:04:49Z</updated>
    <published>2019-01-03T16:04:49Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;I've created a module project&amp;nbsp; with npm-vue-module template.
  "Hello World" is running so far but always when I try to
  import a Single File Template (App.vue) an error occurs.&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;import Vue from 'vue/dist/vue.common';&amp;lt;br&amp;gt; import App from './App.vue'&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;export default function(elementId) {&amp;lt;br&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;new Vue({&amp;lt;br&amp;gt;
    &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;el: `#${elementId}`,&amp;lt;br&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;data: {&amp;lt;br&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;
    &amp;amp;nbsp;text: 'Hello World!',&amp;lt;br&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;},&amp;lt;br&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;});&amp;lt;br&amp;gt; }&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;ERROR [http-nio-8080-exec-7][status_jsp:927] Path
  [Vueport3@1.0.0/App.vue.js] does not start with a "/" character&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems that vue file is taken as javascript file without any conversion.&lt;/p&gt;
&lt;p&gt;In the browser its shown as loading failed: &lt;span class="message-body-wrapper"&gt;
    &lt;span class="message-flex-body"&gt;
      &lt;span class="message-body devtools-monospace"&gt;http://localhost:8080/combo/?browserId=firefox&amp;amp;minifierType=&amp;amp;languageId=en_US&amp;amp;b=7100&amp;amp;t=1546459208026&amp;amp;Vueport3@1.0.0/App.vue.js&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span class="message-body-wrapper"&gt;
    &lt;span class="message-flex-body"&gt;
      &lt;span class="message-body devtools-monospace"&gt;I am using LR 7.1 Bundle.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span class="message-body-wrapper"&gt;
    &lt;span class="message-flex-body"&gt;
      &lt;span class="message-body devtools-monospace"&gt;Any ideas?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>H. Reineke</dc:creator>
    <dc:date>2019-01-03T16:04:49Z</dc:date>
  </entry>
</feed>
