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
Property key of ClassMethod expected node to be of a type ["Identifier","StringLiteral","NumericLiteral"] but instead got undefined #1030
Comments
We cannot just ignore those files because we have to tree-shake them. |
I could be wrong as I don't understand all the internals, but https://github.com/coinbase/rest-hooks/blob/renovate/major-webpack/examples/todo-app/src/pages/Home/TodoListItem.tsx#L32 is not using any imported symbols beyond linaria, so I was thinking perhaps those imports don't have to be traversed? (https://github.com/coinbase/rest-hooks/blob/renovate/major-webpack/examples/todo-app/src/pages/Home/TodoListItem.tsx#L32 is the start of the chain that gets to BaseResource.js) |
Hi @ntucker
I've made a fix but it would be cool if you can help me to reproduce the error, so I can add a test case. |
I'm pretty sure it is that specific key, because Did you try reproducing using the instructions or did you just try extracting the part I thought was related? |
The variable "key" here is not the value, but the name of the member of
I tried the instruction and everything was ok. |
Good news - the new version does fix this issue. I can think of two possible reasons you can't reproduce:
If these aren't the case then I guess it's probably not worth figuring out - since the issue has been fixed. Thanks for the hard work! |
Environment
Description
This is 'property key':
Note that
rest/lib/BaseResource.js
is 100% node compatible ESM. All imports use fully qualified extensions, and the package.json has "type": "module". So there is actually no reason one would need to run babel on it.Perhaps there are three situations
Reproducible Demo
reactive/data-client#2117
git clone git@github.com:coinbase/rest-hooks.git
nvm use
(node 18 is required)The text was updated successfully, but these errors were encountered: