neutralinojs / neutralino.js

JavaScript API for Neutralinojs

Home Page:https://neutralino.js.org/docs/api/overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any way to use with Next.js

tungnnt opened this issue · comments

I'm using "@neutralinojs/lib": "3.8.2" for my next.js project because the higher versions only support esm importing syntax.
I follow this guide to config your lib to work with my project. Everything works ok until I integrate client lib.
Some procedures:

  • I cloned then built this project into a js file, then import into the entry file of nextjs project, the console throws some errors as NL_PORT not defined
  • I remove clientLibrary in config file, then install the above a version from NPM registry, then call init function in the entry file, the error still occurs
    Please anyone help me to solve this issue !!!