Code Monkey home page Code Monkey logo

Comments (14)

werthdavid avatar werthdavid commented on September 14, 2024 2

@lawrencetaur concerning your question with autofocus: I made an follow-up issue (#40) for that

from ngx-scanner.

lawrencetaur avatar lawrencetaur commented on September 14, 2024 1

Works well on Ionic with 'ionic serve' but throws the following error when built for production:
`Running app-scripts build: --prod
[19:02:15] build prod started ...
[19:02:15] clean started ...
[19:02:15] clean finished in 7 ms
[19:02:15] copy started ...
[19:02:15] deeplinks started ...
[19:02:15] deeplinks finished in 75 ms
[19:02:15] ngc started ...
[19:02:21] typescript error
Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are
not supported. Consider replacing the function or lambda with a reference to an exported function, resolving
symbol NgModule in
/home/clarity/Desktop/dev/qrcodescan-test/node_modules/@zxing/ngx-scanner/node_modules/@angular/core/core.d.ts,
resolving symbol NgxZxingModule in
/home/clarity/Desktop/dev/qrcodescan-test/node_modules/@zxing/ngx-scanner/zxing-ngx-scanner.d.ts, resolving
symbol NgxZxingModule in
/home/clarity/Desktop/dev/qrcodescan-test/node_modules/@zxing/ngx-scanner/zxing-ngx-scanner.d.ts

Error: The Angular AoT build failed. See the issues above
at /home/clarity/Desktop/dev/qrcodescan-test/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
at step (/home/clarity/Desktop/dev/qrcodescan-test/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
at Object.next (/home/clarity/Desktop/dev/qrcodescan-test/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
at fulfilled (/home/clarity/Desktop/dev/qrcodescan-test/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
at
[19:02:21] copy finished in 6.44 s`

@zxing/[email protected] <- this is the package I have used

from ngx-scanner.

lawrencetaur avatar lawrencetaur commented on September 14, 2024 1

Master branch works well on an Ionic 3.9 PWA! Thank you!

from ngx-scanner.

odahcam avatar odahcam commented on September 14, 2024 1

image

from ngx-scanner.

odahcam avatar odahcam commented on September 14, 2024

What version of the lib are you using?

from ngx-scanner.

lawrencetaur avatar lawrencetaur commented on September 14, 2024

^0.3.4

from ngx-scanner.

odahcam avatar odahcam commented on September 14, 2024

Please test with v1.0.0-dev :)

from ngx-scanner.

lawrencetaur avatar lawrencetaur commented on September 14, 2024

No matching version found for [email protected]

I tried the following in package.json
^1.0.0-dev
^v1.0.0-dev
v1.0.0-dev
v1.0.0-dev.b3ec02

Still could not find the version. Even tried 'npm i https://github.com/werthdavid/ngx-zxing/tree/v1.0.0-dev.b3ec02' and 'npm i https://github.com/werthdavid/ngx-zxing/tree/v1.0.0-dev'

from ngx-scanner.

werthdavid avatar werthdavid commented on September 14, 2024

Yes, sorry we're currently doing lots of refactoring... the package would be

@zxing/[email protected]

from ngx-scanner.

odahcam avatar odahcam commented on September 14, 2024

So, are you using Ionic?

from ngx-scanner.

lawrencetaur avatar lawrencetaur commented on September 14, 2024

Yes. Ionic 3.9

from ngx-scanner.

odahcam avatar odahcam commented on September 14, 2024

Nice, but unfortunately is not my area. Probably is the deploy type we're using that generates that problem. Do you have any extra info?

from ngx-scanner.

werthdavid avatar werthdavid commented on September 14, 2024

Don't have any ionic experience either...
Can you use the sources of this component so it maybe prints more helpful output?

from ngx-scanner.

lock avatar lock commented on September 14, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from ngx-scanner.

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.