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

Tabs: StackBlitz failing to install dependencies #5732

Open
23457890 opened this issue May 13, 2024 · 1 comment
Open

Tabs: StackBlitz failing to install dependencies #5732

23457890 opened this issue May 13, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@23457890
Copy link

Describe the bug

Error when trying to edit code on StackBlitz. I noticed this on the "tabs" component page, but this likely impacts all StackBlitz examples.

Error: Failed to scan for dependencies from entries:
/home/projects/ay6r74--run/index.html

✘ [ERROR] Unterminated string literal

src/main.js:37:44:
  37 │ import DatePicker from 'primevue/datepicker;
     ╵                                             ^

at failureErrorWithLog (/home/projects/ay6r74--run/node_modules/esbuild/lib/main.js:1639:15)
at eval (/home/projects/ay6r74--run/node_modules/esbuild/lib/main.js:1048:25)
at runOnEndCallbacks (/home/projects/ay6r74--run/node_modules/esbuild/lib/main.js:1474:45)
at buildResponseToResult (/home/projects/ay6r74--run/node_modules/esbuild/lib/main.js:1046:7)
at eval (/home/projects/ay6r74--run/node_modules/esbuild/lib/main.js:1058:9)
at requestCallbacks.on-end (/home/projects/ay6r74--run/node_modules/esbuild/lib/main.js:1057:54)
at handleRequest (/home/projects/ay6r74--run/node_modules/esbuild/lib/main.js:719:19)
at handleIncomingPacket (/home/projects/ay6r74--run/node_modules/esbuild/lib/main.js:745:7)
at Socket.readFromStdout (/home/projects/ay6r74--run/node_modules/esbuild/lib/main.js:669:7)

Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.
5:16:44 PM [vite] Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.
Plugin: vite:import-analysis
File: /home/projects/ay6r74--run/src/main.js:38:36
36 | import DataView from 'primevue/dataview';
37 | import DatePicker from 'primevue/datepicker;
38 | import DeferredContent from 'primevue/deferredcontent';
| ^
39 | import Dialog from 'primevue/dialog';
40 | import DialogService from 'primevue/dialogservice'
at formatError (/home/projects/ay6r74--run/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44114:46)
at TransformContext.error (/home/projects/ay6r74--run/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44110:19)
at TransformContext.transform (/home/projects/ay6r74--run/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41836:22)
at async Object.transform (/home/projects/ay6r74--run/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44404:30)
at async loadAndTransform (/home/projects/ay6r74--run/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:55078:29)
at async viteTransformMiddleware (/home/projects/ay6r74--run/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:64482:32)

Reproducer

NA

PrimeVue version

4.0.0

Vue version

3.x

Language

ALL

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Try editing "Tabs" code on StackBlitz

Expected behavior

No response

@23457890 23457890 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 13, 2024
@blevinelrp
Copy link

Invalid JS issue seems to be fixed.
But there are still multiple issues with the "Tabs" examples.

From the console:

Failed to resolve component: Tab
Failed to resolve component: TabList
Failed to resolve component: TabPanels
Failed to resolve component: Tabs

And as expected, the "Tabs" functionality then does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants