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

Error: Can't resolve '../socketio' in ./node_modules/nativescript-socketio/angular/index.js #73

Closed
loqinyahuive opened this issue Nov 9, 2018 · 1 comment
Labels

Comments

@loqinyahuive
Copy link

Error: Failed to compile.

./node_modules/nativescript-socketio/angular/index.js
Module not found: Error: Can't resolve '../socketio' in '/Users/yahuiqin/workspace/nirvana/warrior/warriortrading.hermes.frontend/node_modules/nativescript-socketio/angular'

Has anyone ever had this problem? Need help.

@chaofan-nirvana
Copy link

I encounter the same issue. My environment is as following:

Angular CLI: 6.1.1
Node: 8.9.4
OS: darwin x64
Angular: 6.1.10
... animations, common, compiler, core, forms, http
... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.8.7
@angular-devkit/build-angular 0.8.7
@angular-devkit/build-optimizer 0.8.7
@angular-devkit/build-webpack 0.8.7
@angular-devkit/core 0.8.7
@angular-devkit/schematics 0.7.1
@angular/cli 6.1.1
@angular/compiler-cli 6.0.9
@ngtools/webpack 6.2.7
@schematics/angular 0.7.1
@schematics/update 0.7.1
rxjs 6.3.3
typescript 2.7.2
webpack 4.16.4

Fixed this issue by adding a file named socketio.js under the root.

"use strict";
function __export(m) {
    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./socketio.android"));
//# sourceMappingURL=index.js.map

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