Giter Club home page Giter Club logo

Comments (21)

Axxon avatar Axxon commented on June 22, 2024

hi @artsyca i've the same issue, could you please compare my repo https://github.com/Axxon/ember-cli-minimal-tree/tree/front2 if a done a mistake ?

from ember-cli-sass.

artsyca avatar artsyca commented on June 22, 2024

@Axxon : https://github.com/Axxon/ember-cli-minimal-tree/blob/front2/tests/dummy/app/styles/app.css according to the instructions, this should be app.scss but even so it hasn't worked for me..

from ember-cli-sass.

Axxon avatar Axxon commented on June 22, 2024

@artsyca I tried like you, without success. (i pushed that).

from ember-cli-sass.

dukex avatar dukex commented on June 22, 2024

I had the same issue here

from ember-cli-sass.

Axxon avatar Axxon commented on June 22, 2024

So, a cool guy could share me a advise to integrate sass into my addon ?

from ember-cli-sass.

fpauser avatar fpauser commented on June 22, 2024

There seem to be some more issues with ember-cli-sass & ember-cli:
ember-cli/ember-cli#4084
ember-cli/ember-cli#3644
ember-cli/ember-cli#2905 (lists more related issues)

from ember-cli-sass.

simonexmachina avatar simonexmachina commented on June 22, 2024

Thanks @fpauser. Yes there definitely do seem to be issues outside the scope of ember-cli-sass here. Unfortunately I've just joined an early stage startup as a tech co-founder, so I simply do not have a second to look into this, sorry. Luckily the source code's available so I'm happy to review and publish any PRs from the community. I'm also open to adding other collaborators on this project as well if anyone is interested.

from ember-cli-sass.

artsyca avatar artsyca commented on June 22, 2024

Congratulations @aexmachina I wish you all the best.

from ember-cli-sass.

fpauser avatar fpauser commented on June 22, 2024

As it seems the last working version of ember-cli-sass was v4.0.0-beta.5 (discovered it by looking at ember-paper's package.json).

Something in v4.0.0-beta.6 breaks compatibility with ember-addons:
v4.0.0-beta.5...v4.0.0-beta.6

from ember-cli-sass.

fpauser avatar fpauser commented on June 22, 2024

Seems like tryFile() @ https://github.com/aexmachina/ember-cli-sass/blob/master/index.js#L21 is problematic. Unsure if this is really an ember-cli problem or if the scss/sass-check should also deal with the inputTrees.

from ember-cli-sass.

dukex avatar dukex commented on June 22, 2024

SASSPlugin.prototype.toTree to addon:

> inputPath
'/'
> outputPath
'/'
> tree
'/file/to/my/project-addon/addon/styles'

SASSPlugin.prototype.toTree to dummy app:

> inputPath
'/app/styles'
> outputPath
'/assets'
> tree
{ inputTrees:
   [ { inputTrees: [Object],
       options: [Object],
       description: 'TreeMerger (ExternalTree)' },
     { inputTrees: [Object], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [Object], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [Object], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [Object], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTrees: [], options: [Object] },
     { inputTree: 'tests/dummy/app/styles',
       _includeFileCache: {},
       _destinationPathCache: {},
       _tmpDir: '/file/to/my/project-addon/tmp/funnel-dest_Hjw6n6.tmp',
       srcDir: '/',
       destDir: '/app/styles',
       destPath: '/file/to/my/project-addon/tmp/funnel-dest_Hjw6n6.tmp/app/styles',
       _instantiatedStack: 'Error\n    at new Funnel (/file/to/my/project-addon/node_modules/... (length: 852)' } ],
  options: { description: 'TreeMerger (stylesAndVendor)', overwrite: true },
  description: 'TreeMerger (stylesAndVendor)' }

There is a problem on tryFile when run the addon tree, inputPath is '/'

from ember-cli-sass.

simonexmachina avatar simonexmachina commented on June 22, 2024

Thanks for the investigation, you were right that that PR introduced the problem. Root cause is the issue above.

I've added an option in v4.0.1 that allows you to specify the file extension, which bypasses the tryFile lookup. So until the underlying issue is resolved you need to specify this option when using inside an addon.

from ember-cli-sass.

justin-lau avatar justin-lau commented on June 22, 2024

I'm still having issue with v4.0.1 even after having extension set in the addon's Brocfile:

var app = new EmberAddon({
    sassOptions: {
        extension: 'scss',
    },
});

Also followed instructions in the readme for addons usage, but the content of addon/styles/addon.scss is not showing in dist/assets/vendor.css.

Am I missing anything?

from ember-cli-sass.

dukex avatar dukex commented on June 22, 2024

@justin-lau the pull-request #57 will fix your problem

from ember-cli-sass.

justin-lau avatar justin-lau commented on June 22, 2024

@dukex I thought the extension option was introduced as a temporary workaround to this issue... With your fixed branch I now understand it was actually meant for the scss files in the dummy app. Thanks!

from ember-cli-sass.

timohermans avatar timohermans commented on June 22, 2024

Any news on this? I'm actually waiting for the fix, so I'm still on 4.0.0-beta5

from ember-cli-sass.

dukex avatar dukex commented on June 22, 2024

@temo44 We are waiting the pull request #57

from ember-cli-sass.

simonexmachina avatar simonexmachina commented on June 22, 2024

@temo44 you should be able to work around that issue by specifying the extension option.

from ember-cli-sass.

lmcardle avatar lmcardle commented on June 22, 2024

+1 also having problems getting addon.scss compiling to dist/assets/vendor.css even with specifying:

// ember-cli-build.js
sassOptions: {
    extension: 'scss' // or sass
}

I am currently on 4.2.0

from ember-cli-sass.

dukex avatar dukex commented on June 22, 2024

Hi everyone, given #78 was merged, now with 5.0.0 you can use sass on addon.
I think this issue can be closed

from ember-cli-sass.

simonexmachina avatar simonexmachina commented on June 22, 2024

Be aware that you now need to specify extension option if you're not using .scss

from ember-cli-sass.

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.