質問編集履歴

3

タイトルを趣旨に沿うように正しく変更

2019/06/09 16:26

投稿

take-t.t.
take-t.t.

スコア360

test CHANGED
@@ -1 +1 @@
1
- Vue.jsを使っナビゲーショドロワを実装たい
1
+ Vue.jsにおいライブラリの読み込みとVueイスタンス内の記述が衝突してエラになってまう
test CHANGED
File without changes

2

エラーメッセージの追加

2019/06/09 16:25

投稿

take-t.t.
take-t.t.

スコア360

test CHANGED
File without changes
test CHANGED
@@ -8,11 +8,23 @@
8
8
 
9
9
 
10
10
 
11
- こでうまく動かない部分を単体でjsfiddleで動かしてみたのですが、問題なく動作しました。
11
+ ※単体で部分をjsfiddleで動かしてみる分には問題なく動作しました。
12
12
 
13
13
  [https://jsfiddle.net/6b1749fd/](https://jsfiddle.net/6b1749fd/)
14
14
 
15
+
16
+
17
+
18
+
19
+ そしてコンソールで表示されたエラー内容は
20
+
21
+
22
+
23
+ > Uncaught TypeError: Cannot read property 'default' of undefinedat script.js:1
24
+
25
+
26
+
15
- なのおそらく他のコード兼ね合い問題が起きていると思ですが、自分では原因が分かりませんでした
27
+ 、 下記JavaScritpのコードの一行目の「vue-js-modal」の読み込みエラーになっているうです。
16
28
 
17
29
 
18
30
 
@@ -320,7 +332,7 @@
320
332
 
321
333
  ```JavaScript
322
334
 
323
- Vue.use(window["vue-js-modal"].default);
335
+ Vue.use(window["vue-js-modal"].default); //vue-js-modalの読み込み
324
336
 
325
337
 
326
338
 

1

不要なコードの削除

2019/06/09 16:19

投稿

take-t.t.
take-t.t.

スコア360

test CHANGED
File without changes
test CHANGED
@@ -316,232 +316,6 @@
316
316
 
317
317
  } //header
318
318
 
319
-
320
-
321
- section {
322
-
323
- width: 100%;
324
-
325
- height: auto;
326
-
327
- @include center-wrapp;
328
-
329
- .top-box {
330
-
331
- @include section-box("TOP");
332
-
333
- @include center-wrapp;
334
-
335
- .title {
336
-
337
- position: relative;
338
-
339
- width: 500px;
340
-
341
- height: 300px;
342
-
343
- margin-bottom: 80px;
344
-
345
- -webkit-box-sizing: border-box;
346
-
347
- box-sizing: border-box;
348
-
349
- @include center-wrapp;
350
-
351
- &::before,
352
-
353
- &::after {
354
-
355
- position: absolute;
356
-
357
- content: '';
358
-
359
- width: 20px;
360
-
361
- height: 50px;
362
-
363
- -webkit-box-sizing: border-box;
364
-
365
- box-sizing: border-box;
366
-
367
- }
368
-
369
- &::before {
370
-
371
- top: 0;
372
-
373
- left: 0;
374
-
375
- border-top: 1px solid #555;
376
-
377
- border-left: 1px solid #555;
378
-
379
- }
380
-
381
- &::after {
382
-
383
- bottom: 0;
384
-
385
- right: 0;
386
-
387
- border-bottom: 1px solid #555;
388
-
389
- border-right: 1px solid #555;
390
-
391
- }
392
-
393
- h1 {
394
-
395
- font-family: 'Orbitron', sans-serif;
396
-
397
- font-size: 40px;
398
-
399
- font-weight: bold;
400
-
401
- line-height: 80px;
402
-
403
- text-shadow: 1px 2px 2px #1d1d1d;
404
-
405
- color: #101010;
406
-
407
- background: linear-gradient(transparent 65%, rgb(72, 141, 252) 65%);
408
-
409
- }
410
-
411
- } //.title
412
-
413
- p {
414
-
415
- width: 250px;
416
-
417
- line-height: 400%;
418
-
419
- letter-spacing: 3px;
420
-
421
- font-size: 15px;
422
-
423
- color: #2a2a2a;
424
-
425
- text-align: left;
426
-
427
- }
428
-
429
- } //top-box
430
-
431
- .button {
432
-
433
- margin: 40px;
434
-
435
- border: solid 1px;
436
-
437
- width: 150px;
438
-
439
- height: 45px;
440
-
441
- &:hover {
442
-
443
- background-color: black;
444
-
445
- transition: 0.2s;
446
-
447
- }
448
-
449
- a {
450
-
451
- @include button-sizing;
452
-
453
- line-height: 45px;
454
-
455
- color: black;
456
-
457
- &:hover {
458
-
459
- color: white;
460
-
461
- transition: 0.2s;
462
-
463
- }
464
-
465
- }
466
-
467
- }
468
-
469
- } //section
470
-
471
-
472
-
473
- footer {
474
-
475
- width: 100%;
476
-
477
- height: 250px;
478
-
479
- .footer-top {
480
-
481
- background-color: rgb(71, 183, 204);
482
-
483
- height: 100px;
484
-
485
- @include center-wrapp;
486
-
487
- ul {
488
-
489
- display: flex;
490
-
491
- }
492
-
493
- li {
494
-
495
- width: 90px;
496
-
497
- padding: 10px;
498
-
499
- margin: 0 40px;
500
-
501
- font-size: 20px;
502
-
503
- a {
504
-
505
- font-family: 'Orbitron', sans-serif;
506
-
507
- display: block;
508
-
509
- width: 100%;
510
-
511
- height: 100%;
512
-
513
- color: #000000;
514
-
515
- }
516
-
517
- }
518
-
519
- } //footer-top
520
-
521
- .footer-bottom {
522
-
523
- background-color: #191919;
524
-
525
- height: 150px;
526
-
527
- display: flex;
528
-
529
- justify-content: space-around;
530
-
531
- small {
532
-
533
- color: white;
534
-
535
- line-height: 150px;
536
-
537
- }
538
-
539
- } //footer-bottom
540
-
541
- } //footer
542
-
543
- } //#app
544
-
545
319
  ```
546
320
 
547
321
  ```JavaScript