Moralis in Nodejs import

Hi guys, I using moralis in Nodejs EV, i have import module as follows

import Moralis from 'moralis/node';

It is error as shown below

and I change my code to
import Moralis from 'moralis/node.js';
its is worked!

How to I can authenticate user for login in nodejs, and why import module Moralis is different from document on https://www.npmjs.com/package/moralis

thanks!

this code works fine for me with a fresh install for Moralis SDK in a new folder:


x = async () => {
    const  Moralis = require('moralis/node')
    console.log(Moralis.CoreManager.get("VERSION"))
    await Moralis.start({ serverUrl: "SERVER_URL", appId: "APP_ID" });

    price = await Moralis.Web3API.token.getTokenPrice({address: "0xe9e7cea3dedca5984780bafc599bd69add087d56", chain: "bsc"})
    console.log(price)
    }

x();

For the authentication part, it may not be easy to do it from node as it will require interaction with a wallet like MetaMask if you want to use that way of authentication. There is also authentication with username and password that may be easier to use from node.

ok thank! I will recheck