Giter Site home page Giter Site logo

Comments (12)

jkapongo avatar jkapongo commented on May 21, 2024 5

You need to use Babel to compile the code to ES2015, similar to Anthony Nahas's solution for angular-google-maps:

  1. Install Babel: npm install --save-dev @babel/core @babel/cli @babel/preset-env
  2. Add this to the root project under the name .babelrc or add the presets directly via cli
    { "presets": ["@babel/preset-env"] }
  3. Add the following npm script in package.json: "compile_ngx-google-places-autocomplete": "babel node_modules/ngx-google-places-autocomplete -d node_modules/ngx-google-places-autocomplete --presets @babel/preset-env",
  4. Add a postinstall script in package.json: "postinstall": "npm run compile_ngx-google-places-autocomplete",
  5. Run npm i to install the dependencies and after the installation the postintall scripts will run Babel to compile ngx-google-places-autocomplete to ES2015.

from ngx-google-places-autocomplete.

divya130 avatar divya130 commented on May 21, 2024

same issue here , did you got any solution???

from ngx-google-places-autocomplete.

rohanpadwalkar avatar rohanpadwalkar commented on May 21, 2024

did you tried command node local.js

from ngx-google-places-autocomplete.

divya130 avatar divya130 commented on May 21, 2024

did you tried command node local.js

no i haven't tried

from ngx-google-places-autocomplete.

rohanpadwalkar avatar rohanpadwalkar commented on May 21, 2024

try
npm run build:prod

after build

node local.js

make sure you are in angular project folder

from ngx-google-places-autocomplete.

divya130 avatar divya130 commented on May 21, 2024

try
npm run build:prod

after build

node local.js

make sure you are in angular project folder
will try, but what does node local.js do and do i need to install local.js

from ngx-google-places-autocomplete.

rohanpadwalkar avatar rohanpadwalkar commented on May 21, 2024

Have a look at your package.json

your npm run server command calls "node local.js"
check your file structure you will find local.js file

from ngx-google-places-autocomplete.

vijaycreatise avatar vijaycreatise commented on May 21, 2024

You need to use Babel to compile the code to ES2015, similar to Anthony Nahas's solution for angular-google-maps:

  1. Install Babel: npm install --save-dev @babel/core @babel/cli @babel/preset-env
  2. Add this to the root project under the name .babelrc or add the presets directly via cli
    { "presets": ["@babel/preset-env"] }
  3. Add the following npm script in package.json: "compile_ngx-google-places-autocomplete": "babel node_modules/ngx-google-places-autocomplete -d node_modules/ngx-google-places-autocomplete --presets @babel/preset-env",
  4. Add a postinstall script in package.json: "postinstall": "npm run compile_ngx-google-places-autocomplete",
  5. Run npm i to install the dependencies and after the installation the postintall scripts will run Babel to compile ngx-google-places-autocomplete to ES2015.

This is not working. I'm using Angular 8. Can u please help me out in this.

from ngx-google-places-autocomplete.

mshenawy avatar mshenawy commented on May 21, 2024
  • stall Babel: npm install --save-dev @babel/core @babel/cli @babel/preset-env
  • Add this to the root project under the name .babelrc or add the presets directly via cli
    { "presets": ["@babel/preset-env"] }
  • Add the following npm script in package.json: "compile_ngx-google-places-autocomplete": "babel node_modules/ngx-google-places-autocomplete -d node_modules/ngx-google-places-autocomplete --presets @babel/preset-env",
  • Add a postinstall script in package.json: "postinstall": "npm run compile_ngx-google-places-autocomplete",
  • Run npm i to install the dependencies and after the installation the postintall scripts will run Babel to compile ngx-google-places-autocomplete to ES2015.

I'm having the same problem, 'm using Angular 8. but this solution not working with me.
any help ?

from ngx-google-places-autocomplete.

nausad-creator avatar nausad-creator commented on May 21, 2024

You need to use Babel to compile the code to ES2015, similar to Anthony Nahas's solution for angular-google-maps:

  1. Install Babel: npm install --save-dev @babel/core @babel/cli @babel/preset-env
  2. Add this to the root project under the name .babelrc or add the presets directly via cli
    { "presets": ["@babel/preset-env"] }
  3. Add the following npm script in package.json: "compile_ngx-google-places-autocomplete": "babel node_modules/ngx-google-places-autocomplete -d node_modules/ngx-google-places-autocomplete --presets @babel/preset-env",
  4. Add a postinstall script in package.json: "postinstall": "npm run compile_ngx-google-places-autocomplete",
  5. Run npm i to install the dependencies and after the installation the postintall scripts will run Babel to compile ngx-google-places-autocomplete to ES2015.

This is not working. I'm using Angular 11. Can u please help me out in this.

from ngx-google-places-autocomplete.

stwasant avatar stwasant commented on May 21, 2024

Hello Guys.. I trying to use this library but I need active this Api when the address has number. I'm not found the way to do this work. I'm Using angular. Any idea? Thank you so much.

from ngx-google-places-autocomplete.

andres97473 avatar andres97473 commented on May 21, 2024

Error Angular 16 "GooglePlaceModule is not compatible with Angular Ivy"

from ngx-google-places-autocomplete.

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.