Ember build failed because of broccoliBuilderError












0















I am on an ember project and I am trying to upgrade ember version from 2.8 to 3.5.0. But since I changed the version and also some several dependencies version I get this error :



Error stack



I've tried to fix this with ember-cli-build file but the error persisted.



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

module.exports = function(defaults) {
const isPublicEnv = EmberApp.env() === 'public';

const app = new EmberApp(defaults, {

'sassOptions': {
includePaths: [
'bower_components/materialize/sass',
],
},
'outputPaths': {
app: {
css: {
design1: '/assets/design1.css',
design2: '/assets/design2.css'
},
},
},
'ember-cli-babel': {
includePolyfill: true,
},
'minifyJS': {
enabled: isPublicEnv,
},
'minifyCSS': {
enabled: isPublicEnv,
},
'fingerprint': {
enabled: isPublicEnv,
},
'tests': !isPublicEnv,
'hinting': !isPublicEnv,
'sourcemaps': {
enabled: !isPublicEnv,
},
});

app.import('vendor/lib1.js');
app.import('vendor/lib2.js');

return app.toTree();
};


Any suggestion to resolve this ?










share|improve this question





























    0















    I am on an ember project and I am trying to upgrade ember version from 2.8 to 3.5.0. But since I changed the version and also some several dependencies version I get this error :



    Error stack



    I've tried to fix this with ember-cli-build file but the error persisted.



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

    module.exports = function(defaults) {
    const isPublicEnv = EmberApp.env() === 'public';

    const app = new EmberApp(defaults, {

    'sassOptions': {
    includePaths: [
    'bower_components/materialize/sass',
    ],
    },
    'outputPaths': {
    app: {
    css: {
    design1: '/assets/design1.css',
    design2: '/assets/design2.css'
    },
    },
    },
    'ember-cli-babel': {
    includePolyfill: true,
    },
    'minifyJS': {
    enabled: isPublicEnv,
    },
    'minifyCSS': {
    enabled: isPublicEnv,
    },
    'fingerprint': {
    enabled: isPublicEnv,
    },
    'tests': !isPublicEnv,
    'hinting': !isPublicEnv,
    'sourcemaps': {
    enabled: !isPublicEnv,
    },
    });

    app.import('vendor/lib1.js');
    app.import('vendor/lib2.js');

    return app.toTree();
    };


    Any suggestion to resolve this ?










    share|improve this question



























      0












      0








      0








      I am on an ember project and I am trying to upgrade ember version from 2.8 to 3.5.0. But since I changed the version and also some several dependencies version I get this error :



      Error stack



      I've tried to fix this with ember-cli-build file but the error persisted.



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

      module.exports = function(defaults) {
      const isPublicEnv = EmberApp.env() === 'public';

      const app = new EmberApp(defaults, {

      'sassOptions': {
      includePaths: [
      'bower_components/materialize/sass',
      ],
      },
      'outputPaths': {
      app: {
      css: {
      design1: '/assets/design1.css',
      design2: '/assets/design2.css'
      },
      },
      },
      'ember-cli-babel': {
      includePolyfill: true,
      },
      'minifyJS': {
      enabled: isPublicEnv,
      },
      'minifyCSS': {
      enabled: isPublicEnv,
      },
      'fingerprint': {
      enabled: isPublicEnv,
      },
      'tests': !isPublicEnv,
      'hinting': !isPublicEnv,
      'sourcemaps': {
      enabled: !isPublicEnv,
      },
      });

      app.import('vendor/lib1.js');
      app.import('vendor/lib2.js');

      return app.toTree();
      };


      Any suggestion to resolve this ?










      share|improve this question
















      I am on an ember project and I am trying to upgrade ember version from 2.8 to 3.5.0. But since I changed the version and also some several dependencies version I get this error :



      Error stack



      I've tried to fix this with ember-cli-build file but the error persisted.



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

      module.exports = function(defaults) {
      const isPublicEnv = EmberApp.env() === 'public';

      const app = new EmberApp(defaults, {

      'sassOptions': {
      includePaths: [
      'bower_components/materialize/sass',
      ],
      },
      'outputPaths': {
      app: {
      css: {
      design1: '/assets/design1.css',
      design2: '/assets/design2.css'
      },
      },
      },
      'ember-cli-babel': {
      includePolyfill: true,
      },
      'minifyJS': {
      enabled: isPublicEnv,
      },
      'minifyCSS': {
      enabled: isPublicEnv,
      },
      'fingerprint': {
      enabled: isPublicEnv,
      },
      'tests': !isPublicEnv,
      'hinting': !isPublicEnv,
      'sourcemaps': {
      enabled: !isPublicEnv,
      },
      });

      app.import('vendor/lib1.js');
      app.import('vendor/lib2.js');

      return app.toTree();
      };


      Any suggestion to resolve this ?







      javascript npm ember.js build broccolijs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 24 '18 at 8:00









      Ahmet Emre Kılınç

      1,100918




      1,100918










      asked Nov 23 '18 at 14:01









      SoufianeSoufiane

      11




      11
























          1 Answer
          1






          active

          oldest

          votes


















          1














          This is the code that's failing from your stack trace from ember-cli-htmlbars-inline-precompile:



          templateCompilerPath() {
          let config = this.projectConfig();
          let templateCompilerPath = config['ember-cli-htmlbars'] && config['ember-cli-htmlbars'].templateCompilerPath;

          let ember = this.project.findAddonByName('ember-source');
          if (ember) {
          return ember.absolutePaths.templateCompiler;
          }

          return path.resolve(this.project.root, templateCompilerPath);
          }


          This line let ember = this.project.findAddonByName('ember-source'); must be the culprit. Although Ember switched from bower to npm around 2.11 iirc, the only way you could be getting Ember > 3.0 is via npm since the last bower pushed version was the end of 2.x.



          I suspect you are on an old version of ember-cli that needs to also be updated since ember is not found. Which version of ember-cli are you using?






          share|improve this answer
























          • Thank you for your response. Before upgrading it was ember-cli 2.8 but now I've changed it to ember-cli 3.5.0

            – Soufiane
            Nov 23 '18 at 15:15











          • and this is failing with 3.5.0? did you use the ember cli upgrade tool?

            – mistahenry
            Nov 23 '18 at 15:26











          • No, in fact what I did is that I removed all installed modules in node_modules of project, I did a research to know the depdencies that I need to change after changing ember-cli to 3.5.0 and I updated the version in package.json. Then I lunched npm install && bower install

            – Soufiane
            Nov 23 '18 at 15:29













          • Follow the instructions here: https://github.com/ember-cli/ember-cli/releases Run ember-cli-update -- This will update your app or addon to the latest ember-cli release. You will probably encounter merge conflicts that you should resolve in your normal git workflow. This is the most important step.

            – mistahenry
            Nov 23 '18 at 15:31








          • 1





            Well, I will try ember-cli-update and I will inform you the result Thank you

            – Soufiane
            Nov 23 '18 at 15:33











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53448110%2fember-build-failed-because-of-broccolibuildererror%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          This is the code that's failing from your stack trace from ember-cli-htmlbars-inline-precompile:



          templateCompilerPath() {
          let config = this.projectConfig();
          let templateCompilerPath = config['ember-cli-htmlbars'] && config['ember-cli-htmlbars'].templateCompilerPath;

          let ember = this.project.findAddonByName('ember-source');
          if (ember) {
          return ember.absolutePaths.templateCompiler;
          }

          return path.resolve(this.project.root, templateCompilerPath);
          }


          This line let ember = this.project.findAddonByName('ember-source'); must be the culprit. Although Ember switched from bower to npm around 2.11 iirc, the only way you could be getting Ember > 3.0 is via npm since the last bower pushed version was the end of 2.x.



          I suspect you are on an old version of ember-cli that needs to also be updated since ember is not found. Which version of ember-cli are you using?






          share|improve this answer
























          • Thank you for your response. Before upgrading it was ember-cli 2.8 but now I've changed it to ember-cli 3.5.0

            – Soufiane
            Nov 23 '18 at 15:15











          • and this is failing with 3.5.0? did you use the ember cli upgrade tool?

            – mistahenry
            Nov 23 '18 at 15:26











          • No, in fact what I did is that I removed all installed modules in node_modules of project, I did a research to know the depdencies that I need to change after changing ember-cli to 3.5.0 and I updated the version in package.json. Then I lunched npm install && bower install

            – Soufiane
            Nov 23 '18 at 15:29













          • Follow the instructions here: https://github.com/ember-cli/ember-cli/releases Run ember-cli-update -- This will update your app or addon to the latest ember-cli release. You will probably encounter merge conflicts that you should resolve in your normal git workflow. This is the most important step.

            – mistahenry
            Nov 23 '18 at 15:31








          • 1





            Well, I will try ember-cli-update and I will inform you the result Thank you

            – Soufiane
            Nov 23 '18 at 15:33
















          1














          This is the code that's failing from your stack trace from ember-cli-htmlbars-inline-precompile:



          templateCompilerPath() {
          let config = this.projectConfig();
          let templateCompilerPath = config['ember-cli-htmlbars'] && config['ember-cli-htmlbars'].templateCompilerPath;

          let ember = this.project.findAddonByName('ember-source');
          if (ember) {
          return ember.absolutePaths.templateCompiler;
          }

          return path.resolve(this.project.root, templateCompilerPath);
          }


          This line let ember = this.project.findAddonByName('ember-source'); must be the culprit. Although Ember switched from bower to npm around 2.11 iirc, the only way you could be getting Ember > 3.0 is via npm since the last bower pushed version was the end of 2.x.



          I suspect you are on an old version of ember-cli that needs to also be updated since ember is not found. Which version of ember-cli are you using?






          share|improve this answer
























          • Thank you for your response. Before upgrading it was ember-cli 2.8 but now I've changed it to ember-cli 3.5.0

            – Soufiane
            Nov 23 '18 at 15:15











          • and this is failing with 3.5.0? did you use the ember cli upgrade tool?

            – mistahenry
            Nov 23 '18 at 15:26











          • No, in fact what I did is that I removed all installed modules in node_modules of project, I did a research to know the depdencies that I need to change after changing ember-cli to 3.5.0 and I updated the version in package.json. Then I lunched npm install && bower install

            – Soufiane
            Nov 23 '18 at 15:29













          • Follow the instructions here: https://github.com/ember-cli/ember-cli/releases Run ember-cli-update -- This will update your app or addon to the latest ember-cli release. You will probably encounter merge conflicts that you should resolve in your normal git workflow. This is the most important step.

            – mistahenry
            Nov 23 '18 at 15:31








          • 1





            Well, I will try ember-cli-update and I will inform you the result Thank you

            – Soufiane
            Nov 23 '18 at 15:33














          1












          1








          1







          This is the code that's failing from your stack trace from ember-cli-htmlbars-inline-precompile:



          templateCompilerPath() {
          let config = this.projectConfig();
          let templateCompilerPath = config['ember-cli-htmlbars'] && config['ember-cli-htmlbars'].templateCompilerPath;

          let ember = this.project.findAddonByName('ember-source');
          if (ember) {
          return ember.absolutePaths.templateCompiler;
          }

          return path.resolve(this.project.root, templateCompilerPath);
          }


          This line let ember = this.project.findAddonByName('ember-source'); must be the culprit. Although Ember switched from bower to npm around 2.11 iirc, the only way you could be getting Ember > 3.0 is via npm since the last bower pushed version was the end of 2.x.



          I suspect you are on an old version of ember-cli that needs to also be updated since ember is not found. Which version of ember-cli are you using?






          share|improve this answer













          This is the code that's failing from your stack trace from ember-cli-htmlbars-inline-precompile:



          templateCompilerPath() {
          let config = this.projectConfig();
          let templateCompilerPath = config['ember-cli-htmlbars'] && config['ember-cli-htmlbars'].templateCompilerPath;

          let ember = this.project.findAddonByName('ember-source');
          if (ember) {
          return ember.absolutePaths.templateCompiler;
          }

          return path.resolve(this.project.root, templateCompilerPath);
          }


          This line let ember = this.project.findAddonByName('ember-source'); must be the culprit. Although Ember switched from bower to npm around 2.11 iirc, the only way you could be getting Ember > 3.0 is via npm since the last bower pushed version was the end of 2.x.



          I suspect you are on an old version of ember-cli that needs to also be updated since ember is not found. Which version of ember-cli are you using?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 23 '18 at 14:53









          mistahenrymistahenry

          5,75931829




          5,75931829













          • Thank you for your response. Before upgrading it was ember-cli 2.8 but now I've changed it to ember-cli 3.5.0

            – Soufiane
            Nov 23 '18 at 15:15











          • and this is failing with 3.5.0? did you use the ember cli upgrade tool?

            – mistahenry
            Nov 23 '18 at 15:26











          • No, in fact what I did is that I removed all installed modules in node_modules of project, I did a research to know the depdencies that I need to change after changing ember-cli to 3.5.0 and I updated the version in package.json. Then I lunched npm install && bower install

            – Soufiane
            Nov 23 '18 at 15:29













          • Follow the instructions here: https://github.com/ember-cli/ember-cli/releases Run ember-cli-update -- This will update your app or addon to the latest ember-cli release. You will probably encounter merge conflicts that you should resolve in your normal git workflow. This is the most important step.

            – mistahenry
            Nov 23 '18 at 15:31








          • 1





            Well, I will try ember-cli-update and I will inform you the result Thank you

            – Soufiane
            Nov 23 '18 at 15:33



















          • Thank you for your response. Before upgrading it was ember-cli 2.8 but now I've changed it to ember-cli 3.5.0

            – Soufiane
            Nov 23 '18 at 15:15











          • and this is failing with 3.5.0? did you use the ember cli upgrade tool?

            – mistahenry
            Nov 23 '18 at 15:26











          • No, in fact what I did is that I removed all installed modules in node_modules of project, I did a research to know the depdencies that I need to change after changing ember-cli to 3.5.0 and I updated the version in package.json. Then I lunched npm install && bower install

            – Soufiane
            Nov 23 '18 at 15:29













          • Follow the instructions here: https://github.com/ember-cli/ember-cli/releases Run ember-cli-update -- This will update your app or addon to the latest ember-cli release. You will probably encounter merge conflicts that you should resolve in your normal git workflow. This is the most important step.

            – mistahenry
            Nov 23 '18 at 15:31








          • 1





            Well, I will try ember-cli-update and I will inform you the result Thank you

            – Soufiane
            Nov 23 '18 at 15:33

















          Thank you for your response. Before upgrading it was ember-cli 2.8 but now I've changed it to ember-cli 3.5.0

          – Soufiane
          Nov 23 '18 at 15:15





          Thank you for your response. Before upgrading it was ember-cli 2.8 but now I've changed it to ember-cli 3.5.0

          – Soufiane
          Nov 23 '18 at 15:15













          and this is failing with 3.5.0? did you use the ember cli upgrade tool?

          – mistahenry
          Nov 23 '18 at 15:26





          and this is failing with 3.5.0? did you use the ember cli upgrade tool?

          – mistahenry
          Nov 23 '18 at 15:26













          No, in fact what I did is that I removed all installed modules in node_modules of project, I did a research to know the depdencies that I need to change after changing ember-cli to 3.5.0 and I updated the version in package.json. Then I lunched npm install && bower install

          – Soufiane
          Nov 23 '18 at 15:29







          No, in fact what I did is that I removed all installed modules in node_modules of project, I did a research to know the depdencies that I need to change after changing ember-cli to 3.5.0 and I updated the version in package.json. Then I lunched npm install && bower install

          – Soufiane
          Nov 23 '18 at 15:29















          Follow the instructions here: https://github.com/ember-cli/ember-cli/releases Run ember-cli-update -- This will update your app or addon to the latest ember-cli release. You will probably encounter merge conflicts that you should resolve in your normal git workflow. This is the most important step.

          – mistahenry
          Nov 23 '18 at 15:31







          Follow the instructions here: https://github.com/ember-cli/ember-cli/releases Run ember-cli-update -- This will update your app or addon to the latest ember-cli release. You will probably encounter merge conflicts that you should resolve in your normal git workflow. This is the most important step.

          – mistahenry
          Nov 23 '18 at 15:31






          1




          1





          Well, I will try ember-cli-update and I will inform you the result Thank you

          – Soufiane
          Nov 23 '18 at 15:33





          Well, I will try ember-cli-update and I will inform you the result Thank you

          – Soufiane
          Nov 23 '18 at 15:33




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53448110%2fember-build-failed-because-of-broccolibuildererror%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          To store a contact into the json file from server.js file using a class in NodeJS

          Redirect URL with Chrome Remote Debugging Android Devices

          Dieringhausen