Skip to content

Can't run guides locally due to infinite render loop #914

Closed

Description

@jenweber

Contributors reported:

 TypeError: (0 , _algoliasearch.default) is not a function

and similar errors when they did not use the npm lockfile or tried to update dependencies. As of version 1.4 of ember-auto-import, polyfills are not included by default. This can be fixed by adding the following config to ember-cli-build.js in the upstream guidemaker:

'use strict';

const EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function(defaults) {
  let app = new EmberApp(defaults, {
    fingerprint: {
      extensions: ['js', 'css', 'map']
    },
    autoImport: {
      webpack: {
        node: {
          global: true
        }
      }
    }
  });

See embroider-build/ember-auto-import#227

Activity

  1. jenweber commented on Jul 5, 2019

    @jenweber
    ContributorAuthor

    Upstream PR ember-learn/guidemaker-ember-template#23

    When this is released, we should bump our template version in this repo

  2. mansona commented on Aug 2, 2019

    @mansona
    Member

    So as I mentioned in the "Upstream PR"... that won't actually change anything down here in guides-source 🤔 we need to add that autoImport config to this repo's ember-cli-build for it to do anything.

    We can do some magic in the index.js upstream but that is a bit strange messing with consuming apps config and I'm not too sure we should be relying on it too much.

  3. MelSumner commented on Sep 1, 2019

    @MelSumner
    Member

    @jenweber @mansona is this still an issue?

  4. glidej commented on Oct 3, 2019

    @glidej

    @MelSumner I'm running into this right now. If I change my package.json locally to reference this merge commit it works locally.

    "guidemaker-ember-template": "git+https://github.com/ember-learn/guidemaker-ember-template.git#8863b3df25f9b9425c2b33525273a74213b71db7",
    
  5. added a commit that references this issue on Nov 22, 2019
    a341f20
  6. added a commit that references this issue on Dec 6, 2019
    d3b23bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions