alibaba / alibaba/structure-view

At Cannot find module 'jquery'

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
35
Forks
12
PR merge metrics
No merged PRs in 30d

Description

[Enter steps to reproduce:]

1. ...
2. ...

**Atom**: 1.33.1 x64
**Electron**: 2.0.16
**OS**: Unknown Windows version
**Thrown From**: [structure-view](https://github.com/alibaba/structure-view) package 0.2.1

### Stack Trace

Failed to activate the structure-view package

```
At Cannot find module 'jquery'

Error: Cannot find module 'jquery'
at Module._resolveFilename (module.js:543:15)
at Module._resolveFilename (~/AppData/Local/atom/app-1.33.1/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.33.1/resources/app/static/:11:154667)
at Module.require (/app.asar/static/index.js:40:43)
at require (~/AppData/Local/atom/app-1.33.1/resources/app/static/:11:145974)
at /packages/structure-view/lib/main.js:2:43)
at /packages/structure-view/lib/main.js:77:2)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.33.1/resources/app/static/:11:146684)
at Object.value [as .js] (~/AppData/Local/atom/app-1.33.1/resources/app/static/:11:150231)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:504:12)
at Function.Module._load (module.js:496:3)
at Module.require (/app.asar/static/index.js:47:45)
at require (internal/module.js:11:18)
at customRequire (~/AppData/Local/atom/app-1.33.1/resources/app/static/:1:639369)
at Package.requireMainModule (~/AppData/Local/atom/app-1.33.1/resources/app/static/:11:3041061)
at Package.activateNow (~/AppData/Local/atom/app-1.33.1/resources/app/static/:11:3029195)
at activationCommandSubscriptions.add.commandRegistry.onWillDispatch.n (~/AppData/Local/atom/app-1.33.1/resources/app/static/:14:1717)
at Function.simpleDispatch (~/AppData/Local/atom/app-1.33.1/resources/app/static/:11:1190759)
at Emitter.emit (~/AppData/Local/atom/app-1.33.1/resources/app/static/:11:1192200)
at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.33.1/resources/app/static/:11:349666)
at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.33.1/resources/app/static/:11:348509)
at AtomEnvironment.dispatchContextMenuCommand (~/AppData/Local/atom/app-1.33.1/resources/app/static/:1:669106)
at EventEmitter.t (~/AppData/Local/atom/app-1.33.1/resources/app/static/:1:676573)
at emitThree (events.js:136:13)
at EventEmitter.emit (events.js:217:7)
```

### Commands

```
-0:06.4.0 structure-view:toggle (div.line)
```

### Non-Core Packages

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at lib/main.js:2, where the stack trace shows the structure-view package loading jquery, and inspect the package dependency declarations. Reproduce activation with Atom 1.33.1 and confirm the package no longer fails with “Cannot find module 'jquery'”.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.