GithubHelp home page GithubHelp logo

Uncaught SyntaxError: /home/diego/.atom/packages/pdf-view/node_modules/pdf.js/build/generic/build/pdf.js:26PDFJS.build = 'fatal: Not a git repository (or any parent up to mount point /t ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Unexpected token ILLEGAL about atom-pdf-view HOT 4 CLOSED

izuzak avatar izuzak commented on July 17, 2024
Uncaught SyntaxError: /home/diego/.atom/packages/pdf-view/node_modules/pdf.js/build/generic/build/pdf.js:26PDFJS.build = 'fatal: Not a git repository (or any parent up to mount point /t ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Unexpected token ILLEGAL

from atom-pdf-view.

Comments (4)

gncs avatar gncs commented on July 17, 2024

A similar issue here:

Atom Version: 0.186.0
System: linux 3.14.9-200.fc20.x86_64
Thrown From: pdf-view package, v0.17.0

Stack Trace

Uncaught SyntaxError: /home/gregor/.atom/packages/pdf-view/node_modules/pdf.js/build/generic/build/pdf.js:26
PDFJS.build = 'fatal: Not a git repository (or any parent up to mount point /h
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Unexpected token ILLEGAL

At /home/gregor/.atom/packages/pdf-view/node_modules/pdf.js/build/generic/build/pdf.js:26

/home/gregor/.atom/packages/pdf-view/node_modules/pdf.js/build/generic/build/pdf.js:26
PDFJS.build = 'fatal: Not a git repository (or any parent up to mount point /h
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected token ILLEGAL
    at exports.runInThisContext (vm.js:75:16)
    at Module._compile (module.js:458:25)
    at Object.loadFile [as .js] (/usr/share/atom/resources/app/src/babel.js:162:21)
    at Module.load (module.js:370:32)
    at Function.Module._load (module.js:325:12)
    at Module.require (module.js:380:17)
    at require (module.js:399:17)
    at Object.<anonymous> (/home/gregor/.atom/packages/pdf-view/lib/pdf-editor-view.coffee:12:3)
    at Object.<anonymous> (/home/gregor/.atom/packages/pdf-view/lib/pdf-editor-view.coffee:340:4)
    at Module._compile (module.js:475:26)

Installed Packages

# User
file-icons, v1.5.0
language-latex, v0.4.1
pdf-view, v0.17.0
vim-mode, v0.36.0

# Dev
No dev packages

The following code from #31 did not resolve the issue.

cd  .atom/packages/pdf-view/
rm -rf node_modules
apm install .

from atom-pdf-view.

 avatar commented on July 17, 2024

it works!!!!!

with the last code

cd  .atom/packages/pdf-view/
rm -rf node_modules
apm install .

but before to do that i have to change my python version from my arch linux

export PYTHON=/usr/bin/python2

from atom-pdf-view.

izuzak avatar izuzak commented on July 17, 2024

Yeah, see #46 and #31 for similar reports.

from atom-pdf-view.

Koltharius avatar Koltharius commented on July 17, 2024

I use Manjaro and atom 0.190.0, I change my python version to python 2 but the error persist.
Any ideas?

Thanks!

from atom-pdf-view.

Related Issues (20)

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.