Coder Social home page Coder Social logo

Failed to lookup view about strider HOT 9 CLOSED

scottbert avatar scottbert commented on June 4, 2024
Failed to lookup view

from strider.

Comments (9)

scottbert avatar scottbert commented on June 4, 2024

Actually looks like a build error, having tried to rerun it I get:


> [email protected] build /home/node/strider
> npm run pre && npm run styles && browserify -d -t [babelify --presets [ es2015 ] --only client] -p [minifyify --output dist/scripts/bundle.map] -e client/app.js -o dist/scripts/app.js


> [email protected] pre /home/node/strider
> mkdirp dist/scripts dist/styles


> [email protected] styles /home/node/strider
> lessc client/styles/strider.less > dist/styles/styles.css

uglify-js failed on public/libs/ui-bootstrap.js : SyntaxError: Unexpected character '`'
uglify-js failed on public/libs/ui-codemirror.js : SyntaxError: Unexpected character '`'
uglify-js failed on vendor/bootstrap/js/bootstrap.js : SyntaxError: Unexpected character '`'
uglify-js failed on vendor/CodeMirror/js/codemirror.js : SyntaxError: Unexpected character '`'
uglify-js failed on vendor/jquery-timeago/js/jquery.timeago.js : SyntaxError: Unexpected character '`'
uglify-js failed on vendor/Sortable/js/Sortable.js : SyntaxError: Unexpected character '`'
uglify-js failed on vendor/bootbox/js/bootbox.js : SyntaxError: Unexpected character '`'
uglify-js failed on node_modules/strip-ansi/index.js : SyntaxError: Unexpected token: operator (>)
uglify-js failed on node_modules/strip-ansi/node_modules/ansi-regex/index.js : SyntaxError: Unexpected token: operator (>)
uglify-js failed on node_modules/debug/src/browser.js : SyntaxError: Unexpected token: name (index)
uglify-js failed on node_modules/debug/src/common.js : SyntaxError: Unexpected token: operator (>)

from strider.

knownasilya avatar knownasilya commented on June 4, 2024

Those errors should not prevent it from working. Did you install from npm or GitHub directly?

The assets should be there. As a workaround try

cd client-ember
yarn install
yarn build

from strider.

knownasilya avatar knownasilya commented on June 4, 2024

Should be fixed in v2.4.2

from strider.

scottbert avatar scottbert commented on June 4, 2024

It's a very old install, NPM originally. I wiped the NPM directory, checked out the github repo and ran npm install and I've been having some trouble with it.

On Fedora 32, node v12.16.1
I didn't have yarn installed as it's not listed as a dependency on the install page, however. Don't know if that matters.

Tried what you suggested above and I get a linting error

strider/templates/application.hbs
  2:2  error  All `<button>` elements should have a valid `type` attribute  require-button-type

I get a typescript error

app/services/live.ts:2:25 - error TS2307: Cannot find module '@glimmer/tracking'.

2 import { tracked } from '@glimmer/tracking';
                          ~~~~~~~~~~~~~~~~~~~

../node_modules/@types/mongoose/index.d.ts:1651:7 - error TS2416: Property 'set' in type 'Array<T>' is not assignable to the same property in base type 'T[]'.
  Type '(i: number, val: any) => this' is not assignable to type '{ <K extends keyof this>(key: K, value: this[K]): this[K]; <T>(key: keyof this, value: T): T; }'.
    Type 'this' is not assignable to type 'this[any]'.
      Type 'Array<T>' is not assignable to type 'this[any]'.
        Type 'Array<T>' is not assignable to type 'T'.
          'Array<T>' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'.
            Type 'this' is not assignable to type 'T'.
              'this' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'.
                Type 'Array<T>' is not assignable to type 'T'.
                  'Array<T>' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'.

1651       set(i: number, val: any): this;

But ultimately it completes.

So I restart Strider. I can get to the project page now, but when I trigger a build it fails. Looking at the log, I get npm ERR! invalid bin entry for package @babel/[email protected]. key=parser, value=bin/babel-parser.js which I'm guessing is Strider as my project doesn't use Babel. Any ideas? I tried npm i -g @babel/parser and that doesn't help :)

from strider.

scottbert avatar scottbert commented on June 4, 2024

...or should I just re-checkout and try again now I have yarn installed?

from strider.

knownasilya avatar knownasilya commented on June 4, 2024

Add DEBUG=strider* to your start command to see what's going on with your build. Paste the logs once you have them.

from strider.

scottbert avatar scottbert commented on June 4, 2024

Startup I get this:

2020-05-02T13:48:48.418Z - info: Connecting to MongoDB URL: mongodb://localhost:27017/strider-foss

2020-05-02T13:48:48.467Z - info: prod config
Error: Cannot find module '../build/Release/bson'
Require stack:
- /home/node/strider/node_modules/strider-webhooks/node_modules/bson/ext/index.js
- /home/node/strider/node_modules/strider-webhooks/node_modules/bson/lib/bson/index.js
- /home/node/strider/node_modules/strider-webhooks/webapp.js
- /home/node/strider/node_modules/strider-extension-loader/lib/index.js
- /home/node/strider/node_modules/strider-extension-loader/main.js
- /home/node/strider/dist-lib/index.js
- /home/node/strider/bin/strider
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
    at Function.Module._load (internal/modules/cjs/loader.js:864:27)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/home/node/strider/node_modules/strider-webhooks/node_modules/bson/ext/index.js:15:10)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/home/node/strider/node_modules/strider-webhooks/node_modules/bson/lib/bson/index.js:3:24)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/home/node/strider/node_modules/strider-webhooks/webapp.js:1:16)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at /home/node/strider/node_modules/strider-extension-loader/lib/index.js:324:29
    at /home/node/strider/node_modules/strider-extension-loader/lib/index.js:355:11
    at /home/node/strider/node_modules/strider-extension-loader/node_modules/async/lib/async.js:511:21 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/node/strider/node_modules/strider-webhooks/node_modules/bson/ext/index.js',
    '/home/node/strider/node_modules/strider-webhooks/node_modules/bson/lib/bson/index.js',
    '/home/node/strider/node_modules/strider-webhooks/webapp.js',
    '/home/node/strider/node_modules/strider-extension-loader/lib/index.js',
    '/home/node/strider/node_modules/strider-extension-loader/main.js',
    '/home/node/strider/dist-lib/index.js',
    '/home/node/strider/bin/strider'
  ]
}
2020-05-02T13:48:50.119Z - info: Express server listening on port 3000 in production mode```

from strider.

knownasilya avatar knownasilya commented on June 4, 2024

Looks like you need to reinstall. Do npm install -g yarn and then yarn install.

from strider.

scottbert avatar scottbert commented on June 4, 2024

OK thanks. Will give it a go

from strider.

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.