<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Debanjan Tewary</title>
    <description>The latest articles on DEV Community by Debanjan Tewary (@debanjant).</description>
    <link>https://dev.to/debanjant</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F795026%2F91bd4d06-27bf-40d5-83e4-96895c495d2f.jpeg</url>
      <title>DEV Community: Debanjan Tewary</title>
      <link>https://dev.to/debanjant</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/debanjant"/>
    <language>en</language>
    <item>
      <title>Can't use redis with nodejs 18.13. Invalid or unexpected token?</title>
      <dc:creator>Debanjan Tewary</dc:creator>
      <pubDate>Sat, 21 Jan 2023 18:17:02 +0000</pubDate>
      <link>https://dev.to/debanjant/cant-use-redis-with-nodejs-1813-invalid-or-unexpected-token-150k</link>
      <guid>https://dev.to/debanjant/cant-use-redis-with-nodejs-1813-invalid-or-unexpected-token-150k</guid>
      <description>&lt;p&gt;Nodejs Application Crashes by only importing redis. I am not even using it any where else.&lt;/p&gt;

&lt;p&gt;Just &lt;code&gt;import redis from "redis"&lt;/code&gt; is throwing me this error.&lt;/p&gt;

&lt;p&gt;Node &amp;amp; Redis Version:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;code&gt;❯ node -v v18.13.0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt; &lt;code&gt;"redis": "^4.5.1"&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is my server index.js file:&lt;br&gt;
&lt;a href="https://github.com/DebanjanT/debug/blob/main/redis_error.js"&gt;index.js&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/Users/debanjantewary/Desktop/YSG/server/node_modules/@redis/client/dist/lib/cluster/cluster-slots.js:65
            if (node.client.options?.readonly)
                                    ^

SyntaxError: Invalid or unexpected token
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)

Node.js v18.13.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tried solution But didn't work:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Clear cache node
Re-install Node stable version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Please help If anyone knows. Thank you ❤️&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to use variable inside variable in angular template?</title>
      <dc:creator>Debanjan Tewary</dc:creator>
      <pubDate>Fri, 02 Dec 2022 16:41:16 +0000</pubDate>
      <link>https://dev.to/debanjant/how-to-use-variable-inside-variable-in-angular-template-569k</link>
      <guid>https://dev.to/debanjant/how-to-use-variable-inside-variable-in-angular-template-569k</guid>
      <description>&lt;p&gt;I am new to angular , can someone tell me if I can use variable inside variable in angular. Explaination:&lt;/p&gt;

&lt;p&gt;I am creating one dropdown input component where it will make api call to get data. There is an &lt;code&gt;@Input() selector:string = ""&lt;/code&gt;which will tell what to select from data&lt;/p&gt;

&lt;p&gt;Inside template it will run *ngFor loop, then inside html I want to display as kind of like that:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;**&amp;lt;option *ngFor="let item of data" [value]="item.id"&amp;gt;&lt;br&gt;
        {{ item.{{selector}} }}&lt;br&gt;
 &amp;lt;/option&amp;gt;**&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In other module it will be used as:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1.In one module `**&amp;lt;app-input [selector]="'name'"&amp;gt;&amp;lt;/app-input&amp;gt;**`
2.Another one. `**&amp;lt;app-input [selector]="'id'"&amp;gt;&amp;lt;/app-input&amp;gt;**`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;How Can I use selector inside this any way?&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
