naviapps / create-nw-react-app

Create NW.js React apps with no build configuration.
MIT License
144 stars 14 forks source link

Failed to compile sqlite3 module #7

Closed Kealman closed 6 years ago

Kealman commented 6 years ago

Hi! Thank you for awesome boilerplate! There is problem with connect sqlite3 lib

When I try use it, compile throws an error

Failed to compile.

../node_modules/sqlite3/node_modules/rc/index.js
Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
| #! /usr/bin/env node
| var cc   = require('./lib/utils')
| var join = require('path').join

Version NWJS:

nw.js v0.27.4
Node v9.3.0
Chromium 63.0.3239.132
commit hash: f6abb93-d8d23fd-a3ef615-547fb57

Version create-nw-react-app - 1.0.2

Thanks for any help

naviapis commented 6 years ago

It may not be possible to build sqlite3 with the latest nw.js.

Alternatives

Thanks.

Kealman commented 6 years ago

Oh, it's sad :( Thanks