Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Yarn build fail with The "to" argument must be of type string. Received type object #313

Closed
trepmag opened this issue Jan 16, 2020 · 3 comments
Labels
#bug Something isn't working

Comments

@trepmag
Copy link

trepmag commented Jan 16, 2020

Describe the bug
yarn install && yarn build fail with the following message:

[1/2] CONFIG Creating config files (failed)

The "to" argument must be of type string. Received type object
TypeError [ERR_INVALID_ARG_TYPE]: The "to" argument must be of type string. Received type object
    at validateString (internal/validators.js:112:11)
    at Object.relative (path.js:1055:5)
    at /home/cgampert/Projects/grid/superset/superset-ui-plugins/node_modules/@superset-ui/build-config/configs/typescript.js:24:33
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/cgampert/Projects/grid/superset/superset-ui-plugins/node_modules/@superset-ui/build-config/configs/typescript.js:23:22)
    at Module._compile (internal/modules/cjs/loader.js:945:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:962:10)
    at Module.load (internal/modules/cjs/loader.js:798:32)
    at Function.Module._load (internal/modules/cjs/loader.js:711:12)
    at Module.require (internal/modules/cjs/loader.js:838:19)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This was triggered on current master head (df66066) while following steps of the demo package.

Update: the error message is different with a node version 12 (instead of a 8 previously)

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.99. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the #bug Something isn't working label Jan 16, 2020
@trepmag trepmag changed the title yarn build fail with Path must be a string. Received Path yarn build fail with The "to" argument must be of type string. Received type object Feb 3, 2020
@trepmag trepmag changed the title yarn build fail with The "to" argument must be of type string. Received type object Yarn build fail with The "to" argument must be of type string. Received type object Feb 3, 2020
@kalimuthu123
Copy link

beemo
i am having this error Beemo.module cannot found

@trepmag
Copy link
Author

trepmag commented Feb 3, 2020

Looks like build fix is being threaten in this issue #319; checkout the kristw--nimbus branch...

@trepmag trepmag closed this as completed Feb 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
#bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants