Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble using mariadb #531

Closed
Ystro opened this issue Dec 11, 2016 · 1 comment
Closed

Trouble using mariadb #531

Ystro opened this issue Dec 11, 2016 · 1 comment
Labels

Comments

@Ystro
Copy link

Ystro commented Dec 11, 2016

  • I'm submitting a ...
    [x] bug report

Hi there, ive a little problem and may you have an idea to fix that.
I want to use mariasql, so i installed it (--save) and in one of my Sites (src/app/pages/settings/components/commands/commands.component.ts) i tried to require it with:
var Client = require('mariasql');
If i reload the site i cant open the page and get errors like that in the console-log:

Module not found: Error: Can't resolve '../build/Debug/sqlclient' in 
Module not found: Error: Can't resolve 'fs' in 'D:\Entwickl\ng2-admin\node_modules\native-dns\lib'
Module not found: Error: Can't resolve 'dgram' in 'D:\Entwickl\ng2-admin\node_modules\native-dns\lib'

Here one long version:

client:99 ./~/native-dns/lib/platform.js
Module not found: Error: Can't resolve 'fs' in 'D:\Entwickl\ng2-admin\node_modules\native-dns\lib'
 @ ./~/native-dns/lib/platform.js 23:9-22
 @ ./~/native-dns/dns.js
 @ ./~/dns/lib/dns.js
 @ ./~/mariasql/lib/Client.js
 @ ./src/app/pages/settings/components/commands/commands.component.ts
 @ ./src/app/pages/settings/settings.module.ts
 @ ./src/app/pages/pages.routing.ts
 @ ./src/app/pages/pages.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.browser.ts
 @ multi main
  • Angular version: 2.2.3
  • Browser: Chrome 54
  • Windows 10 x64
  • NodeJS v6.9.1

Do you have any ideas to fix this? :/

Friendly greets and thanks in advance,
Ystro

@nnixaa
Copy link
Collaborator

nnixaa commented Feb 11, 2017

Looks like you are trying to use a server side library on a client side, so, just don't do this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants