Skip to content

sass gen comments cause error #2

Open
@ericfong

Description

@ericfong
    rework('@-keyframes spin {  /*SASS GEN COMMENTS CAUSE IT DIE*/  0% {} 100%{} }')
    .use(rework.url(function(url){
        console.log(url);
        return url;
    }))
    .toString();


TypeError: Cannot call method 'forEach' of undefined
at func (/Users/eric/Dropbox/waatrade-dpd/webapp/node_modules/rework-plugin-url/node_modules/rework-plugin-function/index.js:37:16)
at /Users/eric/Dropbox/waatrade-dpd/webapp/node_modules/rework-plugin-url/node_modules/rework-plugin-function/index.js:19:7
at /Users/eric/Dropbox/waatrade-dpd/webapp/node_modules/rework-plugin-url/node_modules/rework-plugin-function/node_modules/rework-visit/index.js:29:9
at Array.forEach (native)
at /Users/eric/Dropbox/waatrade-dpd/webapp/node_modules/rework-plugin-url/node_modules/rework-plugin-function/node_modules/rework-visit/index.js:28:22
at Array.forEach (native)
at visit (/Users/eric/Dropbox/waatrade-dpd/webapp/node_modules/rework-plugin-url/node_modules/rework-plugin-function/node_modules/rework-visit/index.js:18:14)
at /Users/eric/Dropbox/waatrade-dpd/webapp/node_modules/rework-plugin-url/node_modules/rework-plugin-function/index.js:17:5
at Rework.use (/Users/eric/Dropbox/waatrade-dpd/webapp/node_modules/rework/index.js:49:3)
at main (/Users/eric/Dropbox/waatrade-dpd/webapp/b.js:16:10)

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