GithubHelp home page GithubHelp logo

Generating snapshot script fails with "Cannot replace with lazy function because the supplied node does not belong to an assignment" about electron-link HOT 6 CLOSED

atom avatar atom commented on August 22, 2024 8
Generating snapshot script fails with "Cannot replace with lazy function because the supplied node does not belong to an assignment"

from electron-link.

Comments (6)

cruzlauroiii avatar cruzlauroiii commented on August 22, 2024

need to support latest node version i think

from electron-link.

LennardF1989 avatar LennardF1989 commented on August 22, 2024

Did you ever figure this one out?

from electron-link.

astoilkov avatar astoilkov commented on August 22, 2024

I am getting the error shown below. Anyone know what the reason for this error is?

Error: /Users/astoilkov/Caret/node_modules/electron/index.js
Cannot replace with lazy function because the supplied node does not belong to an assignment expression or a variable declaration!
    at FileRequireTransform.replaceAssignmentOrDeclarationWithLazyFunction (/Users/astoilkov/Caret/node_modules/electron-link/lib/file-require-transform.js:180:11)
    at Context.visitIdentifier (/Users/astoilkov/Caret/node_modules/electron-link/lib/file-require-transform.js:72:18)
    at Context.invokeVisitorMethod (/Users/astoilkov/Caret/node_modules/recast/node_modules/ast-types/lib/path-visitor.js:344:49)
    at Visitor.PVp.visitWithoutReset (/Users/astoilkov/Caret/node_modules/recast/node_modules/ast-types/lib/path-visitor.js:196:32)
    at visitChildren (/Users/astoilkov/Caret/node_modules/recast/node_modules/ast-types/lib/path-visitor.js:246:25)
    at Visitor.PVp.visitWithoutReset (/Users/astoilkov/Caret/node_modules/recast/node_modules/ast-types/lib/path-visitor.js:204:20)
    at visitChildren (/Users/astoilkov/Caret/node_modules/recast/node_modules/ast-types/lib/path-visitor.js:246:25)
    at Visitor.PVp.visitWithoutReset (/Users/astoilkov/Caret/node_modules/recast/node_modules/ast-types/lib/path-visitor.js:204:20)
    at visitChildren (/Users/astoilkov/Caret/node_modules/recast/node_modules/ast-types/lib/path-visitor.js:246:25)
    at Visitor.PVp.visitWithoutReset (/Users/astoilkov/Caret/node_modules/recast/node_modules/ast-types/lib/path-visitor.js:204:20)

Thanks in advance.

from electron-link.

yonas avatar yonas commented on August 22, 2024

I'm also getting this error. Using node v8.8.1

from electron-link.

aminya avatar aminya commented on August 22, 2024

Same error here at atom/atom#20965. This was tested on my branch in https://github.com/aminya/electron-link

from electron-link.

aminya avatar aminya commented on August 22, 2024

I made a pull request that fixes this! This should be soon available in the next version. #27

from electron-link.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.