<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calcite Components with Webpack 5 in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-with-webpack-5/m-p/1062556#M13</link>
    <description>&lt;P&gt;I am trying to incorporate Calcite Components into a Webpack 5 app.&amp;nbsp; After following the steps outlined in the &lt;A href="https://github.com/Esri/calcite-components#webpack" target="_self"&gt;readme&lt;/A&gt; and then serving the app, I get the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[webpack-cli] TypeError: compiler.plugin is not a function
    at StencilPlugin.apply (C:\projects\R9-CentralBasin\node_modules\@stencil\webpack\dist\index.js:14:18)      
    at createCompiler (C:\projects\R9-CentralBasin\node_modules\webpack\lib\webpack.js:71:12)
    at create (C:\projects\R9-CentralBasin\node_modules\webpack\lib\webpack.js:118:16)
    at webpack (C:\projects\R9-CentralBasin\node_modules\webpack\lib\webpack.js:142:32)
    at WebpackCLI.f [as webpack] (C:\projects\R9-CentralBasin\node_modules\webpack\lib\index.js:54:15)
    at WebpackCLI.createCompiler (C:\projects\R9-CentralBasin\node_modules\webpack-cli\lib\webpack-cli.js:1847:29)
    at async Command.&amp;lt;anonymous&amp;gt; (C:\projects\R9-CentralBasin\node_modules\@webpack-cli\serve\lib\index.js:81:30)
    at async Promise.all (index 1)
    at async Command.&amp;lt;anonymous&amp;gt; (C:\projects\R9-CentralBasin\node_modules\webpack-cli\lib\webpack-cli.js:1284:13)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;After some research, &lt;A href="https://github.com/ionic-team/stencil-webpack/issues/8" target="_self"&gt;it appears stencil is no longer compatible&lt;/A&gt;, since the&amp;nbsp;compiler.plugin&amp;nbsp;api was removed in webpack@5.&amp;nbsp; Is there another way to use&amp;nbsp;Calcite Components with Webpack 5?&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 20:46:02 GMT</pubDate>
    <dc:creator>BradSnider</dc:creator>
    <dc:date>2021-05-27T20:46:02Z</dc:date>
    <item>
      <title>Calcite Components with Webpack 5</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-with-webpack-5/m-p/1062556#M13</link>
      <description>&lt;P&gt;I am trying to incorporate Calcite Components into a Webpack 5 app.&amp;nbsp; After following the steps outlined in the &lt;A href="https://github.com/Esri/calcite-components#webpack" target="_self"&gt;readme&lt;/A&gt; and then serving the app, I get the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[webpack-cli] TypeError: compiler.plugin is not a function
    at StencilPlugin.apply (C:\projects\R9-CentralBasin\node_modules\@stencil\webpack\dist\index.js:14:18)      
    at createCompiler (C:\projects\R9-CentralBasin\node_modules\webpack\lib\webpack.js:71:12)
    at create (C:\projects\R9-CentralBasin\node_modules\webpack\lib\webpack.js:118:16)
    at webpack (C:\projects\R9-CentralBasin\node_modules\webpack\lib\webpack.js:142:32)
    at WebpackCLI.f [as webpack] (C:\projects\R9-CentralBasin\node_modules\webpack\lib\index.js:54:15)
    at WebpackCLI.createCompiler (C:\projects\R9-CentralBasin\node_modules\webpack-cli\lib\webpack-cli.js:1847:29)
    at async Command.&amp;lt;anonymous&amp;gt; (C:\projects\R9-CentralBasin\node_modules\@webpack-cli\serve\lib\index.js:81:30)
    at async Promise.all (index 1)
    at async Command.&amp;lt;anonymous&amp;gt; (C:\projects\R9-CentralBasin\node_modules\webpack-cli\lib\webpack-cli.js:1284:13)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;After some research, &lt;A href="https://github.com/ionic-team/stencil-webpack/issues/8" target="_self"&gt;it appears stencil is no longer compatible&lt;/A&gt;, since the&amp;nbsp;compiler.plugin&amp;nbsp;api was removed in webpack@5.&amp;nbsp; Is there another way to use&amp;nbsp;Calcite Components with Webpack 5?&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 20:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-with-webpack-5/m-p/1062556#M13</guid>
      <dc:creator>BradSnider</dc:creator>
      <dc:date>2021-05-27T20:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite Components with Webpack 5</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-with-webpack-5/m-p/1159963#M68</link>
      <description>&lt;P&gt;The patch to fix this issue is here:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://github.com/ionic-team/stencil-webpack/pull/9/files" target="_blank"&gt;https://github.com/ionic-team/stencil-webpack/pull/9/files&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Go into the &lt;FONT face="courier new,courier"&gt;node_modules\@stencil\webpack\dist\index.js&lt;/FONT&gt; file and change line 14 from&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;        compiler.plugin('emit', (compilation, callback) =&amp;gt; {&amp;nbsp;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;compiler&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;hooks&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;emit&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;tap&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'StencilPlugin'&lt;/SPAN&gt;&lt;SPAN&gt;, (&lt;/SPAN&gt;&lt;SPAN&gt;compilation, callback&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;You'll need to manually tweak this each time you run &lt;FONT face="courier new,courier"&gt;npm install&lt;/FONT&gt;, unfortunately.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Apr 2022 21:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-with-webpack-5/m-p/1159963#M68</guid>
      <dc:creator>LucasScharenbroich</dc:creator>
      <dc:date>2022-04-01T21:28:22Z</dc:date>
    </item>
  </channel>
</rss>

