Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create and populate the assets folder #4

Open
frankhenry opened this issue Jul 30, 2019 · 0 comments
Open

How to create and populate the assets folder #4

frankhenry opened this issue Jul 30, 2019 · 0 comments

Comments

@frankhenry
Copy link

A few weeks ago I used drupal-bootstrap-styles in creating a D8 subtheme and all worked fine with a couple of small exceptions. Yesterday I came back to it with a view to documenting the process but now the build process, i.e.

yarn build

followed by

yarn install

fails with this error message:

[email protected]
  Bootstrap.install bootstrap (456μs)
  Bootstrap.getPath bootstrap (463μs)
  fatal ReferenceError: name is not defined
    at Bootstrap.getPath [as getPathAsync] (/projects/drupal-bootstrap-styles/lib/Bootstrap.js:107:21)
    at LoggerTask.run (/projects/drupal-bootstrap-styles/lib/Logger/LoggerTask.js:52:36)
    at queue.add (/projects/drupal-bootstrap-styles/lib/Logger/Logger.js:296:111)
    at run (/projects/drupal-bootstrap-styles/node_modules/p-queue/index.js:205:22)
    at PQueue._tryToStartAnother (/projects/drupal-bootstrap-styles/node_modules/p-queue/index.js:167:25)
    at Promise (/projects/drupal-bootstrap-styles/node_modules/p-queue/index.js:222:9)
    at Promise._execute (/projects/drupal-bootstrap-styles/node_modules/bluebird/js/release/debuggability.js:313:9)
    at Promise._resolveFromExecutor (/projects/drupal-bootstrap-styles/node_modules/bluebird/js/release/promise.js:488:18)
    at new Promise (/projects/drupal-bootstrap-styles/node_modules/bluebird/js/release/promise.js:79:10)
    at PQueue.add (/projects/drupal-bootstrap-styles/node_modules/p-queue/index.js:199:10)
    at Bootstrap.args [as getPath] (/projects/drupal-bootstrap-styles/lib/Logger/Logger.js:296:36)
    at Bootstrap.install [as installAsync] (/projects/drupal-bootstrap-styles/lib/Bootstrap.js:140:27)
    at LoggerTask.run (/projects/drupal-bootstrap-styles/lib/Logger/LoggerTask.js:52:36)
    at queue.add (/projects/drupal-bootstrap-styles/lib/Logger/Logger.js:296:111)
    at run (/projects/drupal-bootstrap-styles/node_modules/p-queue/index.js:205:22)
    at PQueue._tryToStartAnother (/projects/drupal-bootstrap-styles/node_modules/p-queue/index.js:167:25)

Total time:	716ms

It's failing because there is no assets folder present. When I copy the assets folder from where I successfully compiled the styles last time, everything works as expected. The folder looks like this:

image

The trouble is, I wasn't paying attention to where the assets folder came from so I don't remember if the build process created it or if I copied it from somewhere. Either way, I can't replicate it. I've cleared all node and yarn caches, even tried it on a new vm. Can you help? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant